[Asterisk-code-review] res pjsip pubsub: Remove unneeded endpoint unref (asterisk[13])

George Joseph asteriskteam at digium.com
Mon Feb 27 20:09:04 CST 2017


George Joseph has uploaded a new change for review. ( https://gerrit.asterisk.org/5098 )

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/98/5098/1

diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 644a4d2..1892a20 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -1478,7 +1478,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/5098
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If86d2aecff8fe853c7f38a1bfde721fcef3cd164
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: George Joseph <gjoseph at digium.com>



More information about the asterisk-code-review mailing list