From 02d8e643ea6679beff181a2b2b3946b8fe014fec Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 7 May 2001 21:01:45 +0000 Subject: [PATCH] cut-and-paste-o caused memory leak --- bin/named/controlconf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/named/controlconf.c b/bin/named/controlconf.c index 5483a9a255..c9a9e2a800 100644 --- a/bin/named/controlconf.c +++ b/bin/named/controlconf.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: controlconf.c,v 1.3 2001/04/10 21:50:41 bwelling Exp $ */ +/* $Id: controlconf.c,v 1.4 2001/05/07 21:01:45 gson Exp $ */ #include @@ -374,7 +374,7 @@ control_recvmessage(isc_task_t *task, isc_event_t *event) { if (request != NULL) isccc_sexpr_free(&request); - if (request != NULL) + if (response != NULL) isccc_sexpr_free(&response); return; @@ -386,7 +386,7 @@ control_recvmessage(isc_task_t *task, isc_event_t *event) { maybe_free_listener(listener); if (request != NULL) isccc_sexpr_free(&request); - if (request != NULL) + if (response != NULL) isccc_sexpr_free(&response); }