]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_json: Fix memory leak.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 10 Nov 2022 12:11:53 +0000 (12:11 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 21 Nov 2022 13:49:53 +0000 (07:49 -0600)
commit4ff29ce8dd476602f42282efe58b92c91f530584
tree756c27d17c8e0b0e98700309185725ae602ad159
parentc9ee73fea88fd232503b8f8eb7623639d7d17907
func_json: Fix memory leak.

A memory leak was present in func_json due to
using ast_json_free, which just calls ast_free,
as opposed to recursively freeing the JSON
object as needed. This is now fixed to use the
right free functions.

ASTERISK-30293 #close

Change-Id: I982324dde841dc9147c8d8ad35c8719daf418b49
funcs/func_json.c