From 1b0ca5d5bb5e79a6edb83384301161bb1a54f08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 1 Dec 2017 14:48:32 +0100 Subject: [PATCH] [master] Fix minor memory leak in rndc [RT #46739] --- bin/rndc/rndc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/rndc/rndc.c b/bin/rndc/rndc.c index 84f3efbf57..98f51762cc 100644 --- a/bin/rndc/rndc.c +++ b/bin/rndc/rndc.c @@ -433,6 +433,7 @@ rndc_recvnonce(isc_task_t *task, isc_event_t *event) { isc_event_free(&event); isccc_sexpr_free(&response); + isccc_sexpr_free(&request); return; } @@ -498,6 +499,7 @@ rndc_connected(isc_task_t *task, isc_event_t *event) { NULL)); sends++; isc_event_free(&event); + isccc_sexpr_free(&request); } static void