]> 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:05:25 +0000 (09:05 -0600)
commitabf5085a97329f343717a1c4f850d383e251afd4
tree2f4d507b5a55c3a7a8e56671bcec8bc0c02e4223
parent42a1d98a13dc0a66baeb56565ad1e0f9527dc76c
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