summaryrefslogtreecommitdiff
path: root/res/res_pjsip_messaging.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-03-02 18:11:59 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-03-02 18:12:00 -0600
commitf4670c6a765dbe62ec143cc5c79c54a8a256a131 (patch)
tree85c7a6ba46dc9cc935cbe09e217b770e4a423f4f /res/res_pjsip_messaging.c
parent3c37c7071f82eca8cc068fee6c16a842eddbddb6 (diff)
parent1ea7a5a774ee7c70325e1be37afb403dac1abbc3 (diff)
Merge "CHAOS: cleanup possible null vars on msg alloc failure" into 13
Diffstat (limited to 'res/res_pjsip_messaging.c')
-rw-r--r--res/res_pjsip_messaging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c
index fe285d8a4..596223293 100644
--- a/res/res_pjsip_messaging.c
+++ b/res/res_pjsip_messaging.c
@@ -601,7 +601,7 @@ static int sip_msg_send(const struct ast_msg *msg, const char *to, const char *f
if (!(mdata = msg_data_create(msg, to, from)) ||
ast_sip_push_task(message_serializer, msg_send, mdata)) {
- ao2_ref(mdata, -1);
+ ao2_cleanup(mdata);
return -1;
}
return 0;