summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index a1ed1b52d..0e0c6f366 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -4820,7 +4820,7 @@ static int handle_presencechange(void *datap)
res = 0;
presencechange_cleanup:
- ast_free(hint_app);
+ ast_ref(hint_app, -1);
ao2_ref(pc, -1);
return res;