]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ari: Destroy body variables in channel create.
authorJoshua C. Colp <jcolp@sangoma.com>
Thu, 8 Dec 2022 10:33:02 +0000 (06:33 -0400)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 9 Dec 2022 12:48:54 +0000 (06:48 -0600)
commit564349ff5d4f39ee51b69655babea377e3edb065
tree4227fbbeb6785870a4cb03ba43f69693dffa1bb1
parentb9c031c1f82244e00fddfc9f5e8f0d83e5548b34
ari: Destroy body variables in channel create.

When passing a JSON body to the 'create' channel route
it would be converted into Asterisk variables, but never
freed resulting in a memory leak.

This change makes it so that the variables are freed in
all cases.

ASTERISK-30344

Change-Id: I924dbd866a01c6073e2d6fb846ccaa27ef72d49d
res/ari/resource_channels.c