]> 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)
committerJoshua Colp <jcolp@sangoma.com>
Fri, 19 Nov 2021 15:54:09 +0000 (09:54 -0600)
commit4a4f1a5c9abdc4a17c4add828d8aaee7c3e93fa0
treeacac308beae3991d9fbe9cf307c24f3f81cc2949
parent726d6dd166e65ce043d42df0ebb96e1e3b5495cb
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