projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39ae307
)
Don't attempt free of NULL ptr in pbx.c handle_presencechange
author
Jonathan Rose
<jrose@digium.com>
Tue, 24 Jul 2012 21:30:21 +0000
(21:30 +0000)
committer
Jonathan Rose
<jrose@digium.com>
Tue, 24 Jul 2012 21:30:21 +0000
(21:30 +0000)
(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
main/pbx.c
patch
|
blob
|
history
diff --git
a/main/pbx.c
b/main/pbx.c
index
a1ed1b5
..
0e0c6f3
100644
(file)
--- 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;