]> 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)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 21 Nov 2022 14:46:07 +0000 (08:46 -0600)
commitcb1d31bc3edc27713ff3786155a3a4e23ad31646
tree80d9e753d7a5f669d6c4641c876de8cc94bd8004
parentd5c8f60a72c998855fc11ff2d0c4391c65774aaa
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