From: patthoyts Date: Mon, 9 Feb 2004 12:19:30 +0000 (+0000) Subject: Applied fix from bug #833700 to close a memory leak in UDP_CheckProc. X-Git-Tag: root-dev-2~3 X-Git-Url: http://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=a5f2307c3d1a0c23d4e4c2c9545d7a334cc32145;p=tcludp Applied fix from bug #833700 to close a memory leak in UDP_CheckProc. --- diff --git a/ChangeLog b/ChangeLog index e631784..4d795a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ * all: INCREMENTED VERSION TO 1.0.6 + * generic/udp_tcl.c: Applied fix from bug #833700 to close a + memory leak in UDP_CheckProc. + * Makefile.in: Fixed to build in directories other than the top of the source tree. diff --git a/generic/udp_tcl.c b/generic/udp_tcl.c index 373547f..e06e890 100644 --- a/generic/udp_tcl.c +++ b/generic/udp_tcl.c @@ -590,6 +590,7 @@ UDP_CheckProc(ClientData data, int flags) if (actual_size < 0) { UDPTRACE("UDP error - recvfrom %d\n", statePtr->sock); + ckfree(message); } else { p = (PacketList *)calloc(1, sizeof(struct PacketList)); p->message = message;