]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't try to free statically allocated memory.
authorTerry Wilson <twilson@digium.com>
Tue, 8 Mar 2011 02:42:00 +0000 (02:42 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 8 Mar 2011 02:42:00 +0000 (02:42 +0000)
Note: compiling after ./configure --enable-dev-mode will keep these
kinds of mistakes from being committed.

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

apps/app_externalivr.c

index 965241b3a06fbf606bf98c19018741b9e012690c..42fd469c314f6057269420f069f10ffc71aa2ba7 100644 (file)
@@ -112,7 +112,6 @@ static void send_child_event(FILE *handle, const char event, const char *data,
 
        fprintf(handle, "%s\n", tmp);
        ast_chan_log(LOG_DEBUG, chan, "sent '%s'\n", tmp);
-       ast_free(tmp);
 }
 
 static void *gen_alloc(struct ast_channel *chan, void *params)