res_ari_events: Fix use after free / double-free of JSON message.
authorCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 23:11:08 +0000 (18:11 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 23:11:08 +0000 (18:11 -0500)
commit5247ba4b88825868e0df1de1a863db943cca3601
tree832c15975402d13f14667527aeff39907fc11911
parent637b37fb980822f50966f5292a786d03a859cd89
res_ari_events: Fix use after free / double-free of JSON message.

When stasis_app_message_handler needs to queue a message for a later
connection it needs to bump the message reference so it doesn't get
freed when the caller releases it's reference.

Change-Id: I82696df8fe723b3365c15c3f7089501da8daa892
res/ari/resource_events.c