Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 336374) +++ channels/chan_sip.c (working copy) @@ -25066,6 +25066,7 @@ dialog_unlink_all(p, TRUE, TRUE); dialog_unref(p, "unref dialog p just created via sip_alloc"); /* sip_destroy(p); */ + ao2_unlock(peer); return -1; } /* Recalculate our side, and recalculate Call ID */