[master] fix memory leak in notify test

This commit is contained in:
Evan Hunt
2017-09-11 16:10:49 -07:00
parent 7fb611d331
commit de1591889a

View File

@@ -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;