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