[zaptel-commits] tzafrir: branch 1.4 r3677 - /branches/1.4/zaptel-base.c
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Fri Jan 11 22:07:30 CST 2008
Author: tzafrir
Date: Fri Jan 11 22:07:30 2008
New Revision: 3677
URL: http://svn.digium.com/view/zaptel?view=rev&rev=3677
Log:
Don't free a tone zone that was not created. (So why does tonezone.c do
that?)
Closes issue #10593 . Sorry for the noise.
Modified:
branches/1.4/zaptel-base.c
Modified: branches/1.4/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel-base.c?view=diff&rev=3677&r1=3676&r2=3677
==============================================================================
--- branches/1.4/zaptel-base.c (original)
+++ branches/1.4/zaptel-base.c Fri Jan 11 22:07:30 2008
@@ -1083,6 +1083,8 @@
z = tone_zones[num];
tone_zones[num] = NULL;
write_unlock(&zone_lock);
+ if (!z)
+ return 0;
if (atomic_read(&z->refcount)) {
/* channels are still using this zone so put it back */
More information about the zaptel-commits
mailing list