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
+3
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.
1281. [func] libbind: ns_sign2() and ns_sign_tcp() now provide
+2 -2
View File
@@ -15,7 +15,7 @@
* 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>
@@ -1115,7 +1115,7 @@ dns_dispatchmgr_create(isc_mem_t *mctx, isc_entropy_t *entropy,
DESTROYLOCK(&mgr->lock);
deallocate:
isc_mem_put(mctx, mgr, sizeof(dns_dispatchmgr_t));
isc_mem_detach(&mgr->mctx);
isc_mem_detach(&mctx);
return (result);
}