]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_confbridge: Fix memory leak on updated menu options.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 1 Aug 2022 00:30:00 +0000 (00:30 +0000)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 8 Aug 2022 10:20:00 +0000 (05:20 -0500)
commit300a6150d5ef5f7570b78d9a61d188ed848db1c9
treea25013af6761fc94dd8b55d2ce4a4428c4f81c57
parent0da37ff8ede4dc5ee31bc99591906e93fa7299a5
app_confbridge: Fix memory leak on updated menu options.

If the CONFBRIDGE function is used to dynamically set
menu options, a memory leak occurs when a menu option
that has been set is overridden, since the menu entry
is not destroyed before being freed. This ensures that
it is.

Additionally, logic that duplicates the destroy function
is removed in lieu of the destroy function itself.

ASTERISK-28422 #close

Change-Id: I71cfb5c24e636984d41086d1333a416dc12ff995
apps/confbridge/conf_config_parser.c