2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

4110. [bug] Address memory leaks / null pointer dereferences

on out of memory. [RT #39310]
This commit is contained in:
Mark Andrews
2015-04-29 03:16:50 +10:00
parent e668599e6a
commit b292230ab8
12 changed files with 62 additions and 16 deletions

View File

@@ -1476,10 +1476,11 @@ parse_any_named_map(cfg_parser_t *pctx, cfg_type_t *nametype, const cfg_type_t *
CHECK(cfg_parse_obj(pctx, nametype, &idobj));
CHECK(cfg_parse_map(pctx, type, &mapobj));
mapobj->value.map.id = idobj;
idobj = NULL;
*ret = mapobj;
return (result);
cleanup:
CLEANUP_OBJ(idobj);
CLEANUP_OBJ(mapobj);
return (result);
}