From: Jacob Potter Date: Tue, 16 Dec 2008 15:54:38 +0000 (-0500) Subject: stupid reordering of frees X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/ce29e1cc78d04b4d62d437f75fe69f7f451049ee?ds=sidebyside stupid reordering of frees --- 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"); }