1825. [bug] Missing unlock on out of memory error from in

rbtdb.c:subtractrdataset().  [RT #13519]
This commit is contained in:
Mark Andrews
2005-03-15 00:32:42 +00:00
parent bc29bb9062
commit 3cbc87c31f
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
1825. [bug] Missing unlock on out of memory error from in
rbtdb.c:subtractrdataset(). [RT #13519]
1824. [bug] Memory leak on dns_zone_setdbtype() failure.
[RT #13510]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rbtdb.c,v 1.201 2004/12/21 10:45:17 jinmei Exp $ */
/* $Id: rbtdb.c,v 1.202 2005/03/15 00:32:42 marka Exp $ */
/*
* Principal Author: Bob Halley
@@ -4435,6 +4435,7 @@ subtractrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
changed = add_changed(rbtdb, rbtversion, rbtnode);
if (changed == NULL) {
free_rdataset(rbtdb->common.mctx, newheader);
UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
return (ISC_R_NOMEMORY);
}