diff options
author | Jonathan Rose <jrose@digium.com> | 2012-07-24 21:30:21 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2012-07-24 21:30:21 +0000 |
commit | 729c91b312699048c48559000525ceeffe6fe80c (patch) | |
tree | 84aaf97b23b01bb8a475cdf1adc51539c3d0f840 /main | |
parent | 39ae307bdbd0dce81ab7878f87ad0b37a2759a0c (diff) |
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/trunk@370466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 2 |
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; |