From: Sean Bright Date: Thu, 23 Mar 2017 10:19:18 +0000 (-0400) Subject: res_xmpp: Fix ref counting issue X-Git-Tag: 14.5.0-rc1~77^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=606103580fce877c70940d4eb40a753b77b3e347;p=thirdparty%2Fasterisk.git res_xmpp: Fix ref counting issue The only remaining reference to the endpoint is in the endpoints container, and because it is unlinked in ast_endpoint_shutdown, we don't have to explicitly cleanup the endpoint ourselves. Change-Id: I912a2692e52d3e2ed445b32d8ae3f9004bc2f2e8 --- diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 32e1dd1ffc..1d92931773 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -561,7 +561,6 @@ static void xmpp_client_destructor(void *obj) ast_xmpp_client_disconnect(client); ast_endpoint_shutdown(client->endpoint); - ao2_cleanup(client->endpoint); client->endpoint = NULL; if (client->filter) {