diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-25 09:02:42 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-25 09:02:42 +0000 |
commit | 61fb066b4cd4844d3050ead1237e758541fb17b4 (patch) | |
tree | d85f03e159a640202aaa829f5cc456a7aea90349 /main/channel.c | |
parent | b30237cd274d161f935b37a8912bc56638ac5b72 (diff) |
set pointers to NULL after freeing memory to avoid multiple free()
probably 1.4/1.2 issue as well if someone can look into that.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48001 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c index a83de5b53..74b00e73d 100644 --- 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 */ |