From: Terry Wilson Date: Tue, 8 Mar 2011 02:42:00 +0000 (+0000) Subject: Don't try to free statically allocated memory. X-Git-Tag: 1.4.42-rc1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744b5c4bbb84a0494a34ccaaf662fd837c313c45;p=thirdparty%2Fasterisk.git Don't try to free statically allocated memory. 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 --- diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index 965241b3a0..42fd469c31 100644 --- a/apps/app_externalivr.c +++ b/apps/app_externalivr.c @@ -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)