X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/8ba8547479bb9e87c71e60b62307db161f173413..18a0d8bbdf5091d39ce852c03a2a35000e1e0760:/net/rfb.c diff --git a/net/rfb.c b/net/rfb.c index ae26d0b..514dfc7 100644 --- a/net/rfb.c +++ b/net/rfb.c @@ -1,3 +1,13 @@ +/* rfb.c + * Remote framebuffer server + * NetWatch system management mode administration console + * + * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved. + * This program is free software; you can redistribute and/or modify it under + * the terms found in the file LICENSE in the root of this source tree. + * + */ + #include #include #include @@ -351,8 +361,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"); }