diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 11fbd2aeb9..e422c14a2a 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) {