]> Joshua Wise's Git repositories - netwatch.git/blobdiff - net/rfb.c
add a lot of copyright headers
[netwatch.git] / net / rfb.c
index ae26d0bac81d32c8408bca9a7f3ed0b070872670..514dfc71e0837b4061984c2a6a065a873d948531 100644 (file)
--- 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 <stdint.h>
 #include <minilib.h>
 #include <output.h>
@@ -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");
 }
This page took 0.023086 seconds and 4 git commands to generate.