]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 309355 via svnmerge from
authorDavid Ruggles <thedavidfactor@gmail.com>
Fri, 4 Mar 2011 00:42:28 +0000 (00:42 +0000)
committerDavid Ruggles <thedavidfactor@gmail.com>
Fri, 4 Mar 2011 00:42:28 +0000 (00:42 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r309355 | diruggles | 2011-03-03 19:34:13 -0500 (Thu, 03 Mar 2011) | 9 lines

  fix small memory leak

  fix small memory leak caused by a string allocation that wasn't freed

  (closes issue #18907)
  Reported by: andy11
  Patches:
        asterisk_trunk-app_externalivr-leak.patch uploaded by andy11 (license 1224)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@309356 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_externalivr.c

index 4d7b19f97ff6ac0688b42b34ab31ac7620b3329b..b8000d9c37f38221ce7538d8b77484d223b88e12 100644 (file)
@@ -124,6 +124,7 @@ static void send_eivr_event(FILE *handle, const char event, const char *data,
 
        fprintf(handle, "%s\n", ast_str_buffer(tmp));
        ast_debug(1, "sent '%s'\n", ast_str_buffer(tmp));
+       ast_free(tmp);
 }
 
 static void *gen_alloc(struct ast_channel *chan, void *params)