From: Evan Hunt Date: Mon, 11 Sep 2017 23:10:49 +0000 (-0700) Subject: [master] fix memory leak in notify test X-Git-Tag: v9.12.0a1~16 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=de1591889a29fb33b9872d201d554b3e91f61607;p=thirdparty%2Fbind9.git [master] fix memory leak in notify test --- diff --git a/lib/ns/tests/notify_test.c b/lib/ns/tests/notify_test.c index 3852a468251..92b9d6f3111 100644 --- a/lib/ns/tests/notify_test.c +++ b/lib/ns/tests/notify_test.c @@ -137,6 +137,9 @@ ATF_TC_BODY(notify_start, tc) { * handler. */ dns_view_attach(view, &client->view); + if (client->message != NULL) { + dns_message_destroy(&client->message); + } client->message = nmsg; nmsg = NULL; client->sendcb = check_response;