2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

1283. [bug] Reference after free error if dns_dispatchmgr_create()

failed.
This commit is contained in:
Mark Andrews 2002-05-08 06:34:30 +00:00
parent 88c2b83cc5
commit ddc592d128
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
1283. [bug] Reference after free error if dns_dispatchmgr_create()
failed.
1282. [bug] ns_server_destroy() failed to set *serverp to NULL. 1282. [bug] ns_server_destroy() failed to set *serverp to NULL.
1281. [func] libbind: ns_sign2() and ns_sign_tcp() now provide 1281. [func] libbind: ns_sign2() and ns_sign_tcp() now provide

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dispatch.c,v 1.107 2002/03/07 00:07:27 marka Exp $ */ /* $Id: dispatch.c,v 1.108 2002/05/08 06:34:30 marka Exp $ */
#include <config.h> #include <config.h>
@ -1115,7 +1115,7 @@ dns_dispatchmgr_create(isc_mem_t *mctx, isc_entropy_t *entropy,
DESTROYLOCK(&mgr->lock); DESTROYLOCK(&mgr->lock);
deallocate: deallocate:
isc_mem_put(mctx, mgr, sizeof(dns_dispatchmgr_t)); isc_mem_put(mctx, mgr, sizeof(dns_dispatchmgr_t));
isc_mem_detach(&mgr->mctx); isc_mem_detach(&mctx);
return (result); return (result);
} }