Revision: 1239
http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1239&view=rev
Author: sbalea
Date: 2007-10-30 10:49:26 -0700 (Tue, 30 Oct 2007)
Log Message:
-----------
Fix memory leak in codec_ulaw teardown. Patch provided by Teri Schoech. Thanks
Modified Paths:
--------------
trunk/lib/codec_ulaw.c
Modified: trunk/lib/codec_ulaw.c
===================================================================
--- trunk/lib/codec_ulaw.c 2007-10-30 17:36:30 UTC (rev 1238)
+++ trunk/lib/codec_ulaw.c 2007-10-30 17:49:26 UTC (rev 1239)
@@ -84,7 +84,9 @@
}
static void destroy ( struct iaxc_audio_codec *c) {
- free(c);
+ if ( c->decstate )
+ free(c->decstate);
+ free(c);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|