]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: Fix off-nominal reference leak.
authorSean Bright <sean@seanbright.com>
Tue, 7 Jan 2025 16:34:04 +0000 (11:34 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:42:28 +0000 (18:42 +0000)
commitf680ce9d7b3a1eccafdba2e60ce09021fcf99582
tree137810af44264ffce8dfbaf676fd11a76194c44d
parentce9c5415a86ca306185cc2d3c6a5975fa44ffa53
config.c: Fix off-nominal reference leak.

This was identified and fixed by @Allan-N in #918 but it is an
important fix in its own right.

The fix here is slightly different than Allan's in that we just move
the initialization of the problematic AO2 container to where it is
first used.

Fixes #1046

(cherry picked from commit 6b3dadfbe27404d995fdbbc4d31e2b3d5ed2fca6)
main/config.c