mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1091,6 +1091,7 @@ static struct ast_config *realtime_multi_handler(const char *database,
|
|||||||
|
|
||||||
if (!(tmp_str = sqlite_mprintf("%s ORDER BY %q;", query, initfield))) {
|
if (!(tmp_str = sqlite_mprintf("%s ORDER BY %q;", query, initfield))) {
|
||||||
ast_log(LOG_WARNING, "Unable to reallocate SQL query\n");
|
ast_log(LOG_WARNING, "Unable to reallocate SQL query\n");
|
||||||
|
sqlite_freemem(query);
|
||||||
ast_config_destroy(cfg);
|
ast_config_destroy(cfg);
|
||||||
ast_free(initfield);
|
ast_free(initfield);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user