diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 1aa865cd6267f1e9818b6d2c60b2291de69a0d47..ab4ee9e4f01b94986b1c5a0f20b6028b9ca75c03 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -559,7 +559,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) {