[Asterisk-code-review] res pjsip pubsub: Remove unneeded endpoint unref (asterisk[14])
George Joseph
asteriskteam at digium.com
Mon Feb 27 20:09:24 CST 2017
George Joseph has uploaded a new change for review. ( https://gerrit.asterisk.org/5099 )
Change subject: res_pjsip_pubsub: Remove unneeded endpoint unref
......................................................................
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
---
M res/res_pjsip_pubsub.c
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/5099/1
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 709dc66..e905024 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -1456,7 +1456,6 @@
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;
}
--
To view, visit https://gerrit.asterisk.org/5099
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If86d2aecff8fe853c7f38a1bfde721fcef3cd164
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: George Joseph <gjoseph at digium.com>
More information about the asterisk-code-review
mailing list