]> git.ipfire.org Git - thirdparty/asterisk.git/commit
astobj2.c: Fix core when ref_log enabled
authorMike Bradeen <mbradeen@sangoma.com>
Tue, 16 Nov 2021 22:34:28 +0000 (15:34 -0700)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 19 Nov 2021 15:06:02 +0000 (09:06 -0600)
commit07d73dbc76ca8de8f5f7b0d5f4f16d80e0409af9
treed0369165649f819a7dd03e8b9f23e01735e73c86
parent426ee9a607f5f940a7257f2f8704ef75ffc68d72
astobj2.c: Fix core when ref_log enabled

In the AO2_ALLOC_OPT_LOCK_NOLOCK case the referenced obj
structure is freed, but is then referenced later if ref_log is
enabled. The change is to store the obj->priv_data.options value
locally and reference it instead of the value from the freed obj

ASTERISK-29730

Change-Id: I60cc5dc1f5a4330e7ad56976fc38a42de0ab6072
main/astobj2.c