From de1591889a29fb33b9872d201d554b3e91f61607 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 11 Sep 2017 16:10:49 -0700 Subject: [PATCH] [master] fix memory leak in notify test --- lib/ns/tests/notify_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ns/tests/notify_test.c b/lib/ns/tests/notify_test.c index 3852a46825..92b9d6f311 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;