]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 8 Dec 2022 17:22:50 +0000 (11:22 -0600)
commit52ed64e38a88e8ecb2f986ef4106fb566f03d895
tree378cdf6f7d17e044e8b2d329c5ffb102ee91d65e
parent2b0f87c9fcd764729e9cc784b6619b489b36432a
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