Commit de159188 authored by Evan Hunt's avatar Evan Hunt

[master] fix memory leak in notify test

parent 7fb611d3
...@@ -137,6 +137,9 @@ ATF_TC_BODY(notify_start, tc) { ...@@ -137,6 +137,9 @@ ATF_TC_BODY(notify_start, tc) {
* handler. * handler.
*/ */
dns_view_attach(view, &client->view); dns_view_attach(view, &client->view);
if (client->message != NULL) {
dns_message_destroy(&client->message);
}
client->message = nmsg; client->message = nmsg;
nmsg = NULL; nmsg = NULL;
client->sendcb = check_response; client->sendcb = check_response;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment