diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-03-02 18:02:38 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-03-02 18:02:38 -0600 |
commit | 53f84a467075a49738f1f46d1feb1f8f90ba4bd4 (patch) | |
tree | 4edfae2fa7e6b042a6f0532535a8d3135ba24ac7 /res | |
parent | 60aa871be3a9a5de2d5029a19b7f8fcfb7f4ea88 (diff) | |
parent | 0a3f0e85ace6f55fa5826c301ccaac066d24a11f (diff) |
Merge "CHAOS: cleanup possible null vars on msg alloc failure"
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip_messaging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c index 20d1f9d99..f72f3f015 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; |