diff options
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 40645214a..248addc11 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5191,6 +5191,7 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit } if (!tmp) { ast_log(LOG_WARNING, "Unable to allocate AST channel structure for SIP channel\n"); + sip_pvt_lock(i); return NULL; } sip_pvt_lock(i); |