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:
7406c1b
)
set pointers to NULL after freeing memory to avoid multiple free()
author
Luigi Rizzo
<rizzo@icir.org>
Sat, 25 Nov 2006 09:02:42 +0000
(09:02 +0000)
committer
Luigi Rizzo
<rizzo@icir.org>
Sat, 25 Nov 2006 09:02:42 +0000
(09:02 +0000)
probably 1.4/1.2 issue as well if someone can look into that.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48001
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/channel.c
patch
|
blob
|
history
diff --git
a/main/channel.c
b/main/channel.c
index
a83de5b
..
74b00e7
100644
(file)
--- a/
main/channel.c
+++ b/
main/channel.c
@@
-1027,6
+1027,7
@@
static void free_cid(struct ast_callerid *cid)
free(cid->cid_ani);
if (cid->cid_rdnis)
free(cid->cid_rdnis);
+ cid->cid_dnid = cid->cid_num = cid->cid_name = cid->cid_ani = cid->cid_rdnis = NULL;
}
/*! \brief Free a channel structure */