From ce29e1cc78d04b4d62d437f75fe69f7f451049ee Mon Sep 17 00:00:00 2001 From: Jacob Potter Date: Tue, 16 Dec 2008 10:54:38 -0500 Subject: [PATCH] stupid reordering of frees --- net/rfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rfb.c b/net/rfb.c index ae26d0b..8e5ab91 100644 --- a/net/rfb.c +++ b/net/rfb.c @@ -351,8 +351,8 @@ static void close_conn(struct tcp_pcb *pcb, struct rfb_state *state) { tcp_arg(pcb, NULL); tcp_sent(pcb, NULL); tcp_recv(pcb, NULL); - mem_free(state); mem_free(state->blockbuf); + mem_free(state); tcp_close(pcb); outputf("close_conn: done"); } -- 2.43.0