X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/8ba8547479bb9e87c71e60b62307db161f173413..b88efb87848ff559e0559a5a752e30de50c4a325:/net/rfb.c 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"); }