[Freeswitch-svn] [commit] r13447 - freeswitch/trunk/src/mod/applications/mod_dptools

FreeSWITCH SVN brian at freeswitch.org
Tue May 26 18:58:19 PDT 2009


Author: brian
Date: Tue May 26 20:58:19 2009
New Revision: 13447

Log:
 fix another leak 

Modified:
   freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	Tue May 26 20:58:19 2009
@@ -1154,7 +1154,7 @@
 
 SWITCH_STANDARD_API(chat_api_function)
 {
-	char *lbuf, *argv[5];
+	char *lbuf = NULL, *argv[5];
 	int argc = 0;
 
 	if (!switch_strlen_zero(cmd) && (lbuf = strdup(cmd))
@@ -1170,6 +1170,7 @@
 		stream->write_function(stream, "Invalid");
 	}
 
+	switch_safe_free(lbuf);
 	return SWITCH_STATUS_SUCCESS;
 }
 



More information about the Freeswitch-svn mailing list