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:
bac2215
)
Don't free if it's NULL
author
Mark Spencer
<markster@digium.com>
Wed, 11 Feb 2004 05:14:19 +0000
(
05:14
+0000)
committer
Mark Spencer
<markster@digium.com>
Wed, 11 Feb 2004 05:14:19 +0000
(
05:14
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2154
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
indications.c
patch
|
blob
|
history
diff --git
a/indications.c
b/indications.c
index
68b8628
..
4632f69
100755
(executable)
--- a/
indications.c
+++ b/
indications.c
@@
-318,7
+318,8
@@
static inline void free_zone(struct tone_zone* zone)
struct tone_zone_sound *tmp = zone->tones->next;
free((void*)zone->tones->name);
free((void*)zone->tones->data);
- free((void*)zone->ringcadance);
+ if (zone->ringcadance)
+ free((void*)zone->ringcadance);
free(zone->tones);
zone->tones = tmp;
}