Revision: 1240
http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1240&view=rev
Author: sbalea
Date: 2007-10-30 10:54:55 -0700 (Tue, 30 Oct 2007)
Log Message:
-----------
Merge from trunk: Fix memory leak in codec_ulaw teardown process.
Modified Paths:
--------------
branches/2.0/lib/codec_ulaw.c
Modified: branches/2.0/lib/codec_ulaw.c
===================================================================
--- branches/2.0/lib/codec_ulaw.c 2007-10-30 17:49:26 UTC (rev 1239)
+++ branches/2.0/lib/codec_ulaw.c 2007-10-30 17:54:55 UTC (rev 1240)
@@ -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.
|