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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user