From a5f2307c3d1a0c23d4e4c2c9545d7a334cc32145 Mon Sep 17 00:00:00 2001 From: patthoyts Date: Mon, 9 Feb 2004 12:19:30 +0000 Subject: [PATCH] Applied fix from bug #833700 to close a memory leak in UDP_CheckProc. --- ChangeLog | 3 +++ generic/udp_tcl.c | 1 + 2 files changed, 4 insertions(+) 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; -- 2.23.0