From: George Joseph Date: Tue, 28 Feb 2017 02:07:06 +0000 (-0700) Subject: res_pjsip_pubsub: Remove unneeded endpoint unref X-Git-Tag: 13.15.0-rc1~49^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e6ecdade2f9a154ea10ecb6e20635b328cb9dcf;p=thirdparty%2Fasterisk.git res_pjsip_pubsub: Remove unneeded endpoint unref When a subscription was being recreated and the endpoint wasn't found, we were trying to unref the endpoint. This was causing FRACKs. Removed the unref. ASTERISK-26823 #close Change-Id: If86d2aecff8fe853c7f38a1bfde721fcef3cd164 --- diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index 644a4d293b..1892a20e94 100644 --- a/res/res_pjsip_pubsub.c +++ b/res/res_pjsip_pubsub.c @@ -1478,7 +1478,6 @@ static int sub_persistence_recreate(void *obj) ast_log(LOG_WARNING, "Failed recreating '%s' subscription: The endpoint was not found\n", persistence->endpoint); ast_sorcery_delete(ast_sip_get_sorcery(), persistence); - ao2_ref(endpoint, -1); return 0; }