diff -r 0c13bca53ae1 -r 7d4094eb3117 src/test.c --- a/src/test.c Thu Mar 12 23:05:54 2009 +0200 +++ b/src/test.c Thu Mar 12 23:15:57 2009 +0200 @@ -93,7 +93,7 @@ sock_test_get_send_data(sock, &buf, &len); - log_debug("get_send_data: '%*s'", (int) len, buf); + log_debug("get_send_data: '%.*s'", (int) len, buf); // should be the same assert_strncmp(buf, data, len); @@ -408,6 +408,9 @@ log_info("test irc_net_error"); sock_test_set_recv_eof(sock); assert(net->conn == NULL); + + // cleanup + irc_net_destroy(net); } /**