mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 13:57:50 +00:00
Tweak object dereferencing: I believe dereferencing object chains were not
being freed correctly. (This duplicates a change made by Tale in revision 1.8 of the BIND9 object.c.)
This commit is contained in:
@@ -475,10 +475,10 @@ isc_result_t omapi_object_dereference (omapi_object_t **h,
|
|||||||
if (!extra_references) {
|
if (!extra_references) {
|
||||||
if (inner_reference)
|
if (inner_reference)
|
||||||
omapi_object_dereference
|
omapi_object_dereference
|
||||||
(&(*h) -> inner -> outer, file, line);
|
(&(*h) -> inner, file, line);
|
||||||
if (outer_reference)
|
if (outer_reference)
|
||||||
omapi_object_dereference
|
omapi_object_dereference
|
||||||
(&(*h) -> outer -> inner, file, line);
|
(&(*h) -> outer, file, line);
|
||||||
if (!(*h) -> type -> freer)
|
if (!(*h) -> type -> freer)
|
||||||
rc_register (file, line, h, *h, 0);
|
rc_register (file, line, h, *h, 0);
|
||||||
if ((*h) -> type -> destroy)
|
if ((*h) -> type -> destroy)
|
||||||
|
Reference in New Issue
Block a user