diff --git a/main/pbx.c b/main/pbx.c index 0e0c6f366a..a1ed1b52d6 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4820,7 +4820,7 @@ static int handle_presencechange(void *datap) res = 0; presencechange_cleanup: - ast_ref(hint_app, -1); + ast_free(hint_app); ao2_ref(pc, -1); return res;