Skip to content
Snippets Groups Projects
Commit 38f7641c authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Fix memory leak.

(Closes issue #13096)
Reported by gknispel_proformatique


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@131681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 7613e369
No related branches found
No related tags found
No related merge requests found
......@@ -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))) {
ast_log(LOG_WARNING, "Unable to reallocate SQL query\n");
sqlite_freemem(query);
ast_config_destroy(cfg);
ast_free(initfield);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment