uninitalize memory read on error path

This commit is contained in:
Mark Andrews 2018-11-09 15:32:33 +11:00
parent 93776c4c81
commit 4eadebe2b2

View file

@ -149,7 +149,7 @@ dns_ntatable_create(dns_view_t *view,
isc_task_detach(&ntatable->task);
cleanup_ntatable:
isc_mem_put(ntatable->view->mctx, ntatable, sizeof(*ntatable));
isc_mem_put(view->mctx, ntatable, sizeof(*ntatable));
return (result);
}