Applied fix from bug #833700 to close a memory leak in UDP_CheckProc.
authorpatthoyts <patthoyts>
Mon, 9 Feb 2004 12:19:30 +0000 (12:19 +0000)
committerpatthoyts <patthoyts>
Mon, 9 Feb 2004 12:19:30 +0000 (12:19 +0000)
ChangeLog
generic/udp_tcl.c

index e631784f62e58680c472ea61a06d2a28ec2e4a93..4d795a476a1d91cce7d47067cb9a83c0a6ef209d 100644 (file)
--- 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.
 
index 373547f02faf9807d5e84fec6e8f03c056dd10a7..e06e890cde65fe6920783c756c68ef8acd5e58bd 100644 (file)
@@ -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;