summaryrefslogtreecommitdiff
path: root/res/res_pjsip_pubsub.c
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-02-27 19:07:06 -0700
committerGeorge Joseph <gjoseph@digium.com>2017-02-27 20:09:36 -0600
commitfb68db87b1ab4e39c6c8a9d363985b0de6407228 (patch)
treeab1460371597a271c2623078a3c5b5fac2504b1d /res/res_pjsip_pubsub.c
parentdf22d297a64ee2ef53ea0296a353a5c90ae70ba2 (diff)
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
Diffstat (limited to 'res/res_pjsip_pubsub.c')
-rw-r--r--res/res_pjsip_pubsub.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 709dc6640..e90502485 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -1456,7 +1456,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;
}