From ff8e14d78278baeeea20b274feffc02b000a8fee Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Tue, 24 Jul 2012 21:08:27 +0000 Subject: [PATCH] Don't attempt free of NULL ptr in pbx.c handle_presencechange (closes issue AST-921) Reported by: Guenther Kelleter Patches: nullptr.patch uploaded by Guenther Kelleter (license 6372) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@370465 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/pbx.c b/main/pbx.c index 85a22aab47..026cafe1cd 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4805,7 +4805,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; -- 2.47.2