From c5a15468f04a020e9b517eb22d63cc85776be00c Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Tue, 23 Mar 2010 16:13:03 +0000 Subject: Fixed NULL-pointer access bug in tcpserver_free() that caused trouble when closing a [tcpserver]. Free send parameters if thread fails to create. [tcpclient] posts "tcpclient_free" at start and end of tcpclient_free if verbosity==1. svn path=/trunk/externals/mrpeach/; revision=13243 --- net/tcpclient.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/tcpclient.c') diff --git a/net/tcpclient.c b/net/tcpclient.c index 93fbb91..9804db8 100644 --- a/net/tcpclient.c +++ b/net/tcpclient.c @@ -526,9 +526,11 @@ static void *tcpclient_new(t_floatarg udpflag) static void tcpclient_free(t_tcpclient *x) { + if (x->x_verbosity) post("tcpclient_free..."); tcpclient_disconnect(x); clock_free(x->x_poll); clock_free(x->x_clock); + if (x->x_verbosity) post("...tcpclient_free"); } void tcpclient_setup(void) -- cgit v1.2.1