[asterisk-commits] rmudgett: branch 13 r433088 - /branches/13/res/res_pjsip_session.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 17 21:34:02 CDT 2015
Author: rmudgett
Date: Tue Mar 17 21:34:00 2015
New Revision: 433088
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433088
Log:
res_pjsip_session: Fix off-nominal extra unref of session.
Modified:
branches/13/res/res_pjsip_session.c
Modified: branches/13/res/res_pjsip_session.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip_session.c?view=diff&rev=433088&r1=433087&r2=433088
==============================================================================
--- branches/13/res/res_pjsip_session.c (original)
+++ branches/13/res/res_pjsip_session.c Tue Mar 17 21:34:00 2015
@@ -1869,7 +1869,7 @@
ast_pjsip_rdata_get_endpoint(rdata), ao2_cleanup);
pjsip_tx_data *tdata = NULL;
pjsip_inv_session *inv_session = NULL;
- RAII_VAR(struct ast_sip_session *, session, NULL, ao2_cleanup);
+ struct ast_sip_session *session;
struct new_invite *invite;
ast_assert(endpoint != NULL);
@@ -1897,10 +1897,9 @@
} else {
pjsip_inv_send_msg(inv_session, tdata);
}
- ao2_ref(session, -1);
ao2_cleanup(invite);
- return;
- }
+ }
+ ao2_ref(session, -1);
}
static pj_bool_t does_method_match(const pj_str_t *message_method, const char *supplement_method)
More information about the asterisk-commits
mailing list