[svn-commits] tilghman: branch 1.6.0 r131682 - in /branches/1.6.0: ./ res/res_config_sqlite.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 17 10:46:25 CDT 2008


Author: tilghman
Date: Thu Jul 17 10:46:24 2008
New Revision: 131682

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131682
Log:
Merged revisions 131681 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r131681 | tilghman | 2008-07-17 10:45:25 -0500 (Thu, 17 Jul 2008) | 4 lines

Fix memory leak.
(Closes issue #13096)
Reported by gknispel_proformatique

........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/res/res_config_sqlite.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/res/res_config_sqlite.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/res/res_config_sqlite.c?view=diff&rev=131682&r1=131681&r2=131682
==============================================================================
--- branches/1.6.0/res/res_config_sqlite.c (original)
+++ branches/1.6.0/res/res_config_sqlite.c Thu Jul 17 10:46:24 2008
@@ -1091,6 +1091,7 @@
 
 	if (!(tmp_str = sqlite_mprintf("%s ORDER BY %q;", query, initfield))) {
 		ast_log(LOG_WARNING, "Unable to reallocate SQL query\n");
+		sqlite_freemem(query);
 		ast_config_destroy(cfg);
 		ast_free(initfield);
 		return NULL;




More information about the svn-commits mailing list