From: Mark Spencer Date: Wed, 22 Oct 2003 04:03:15 +0000 (+0000) Subject: Bah, it needs the free apparently X-Git-Tag: 0.7.0~359 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9d8746b06d424ff28a6771e8b562988ac43d813;p=thirdparty%2Fasterisk.git Bah, it needs the free apparently git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1653 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/cli.c b/cli.c index d577943ea0..ae6876fad1 100755 --- a/cli.c +++ b/cli.c @@ -42,6 +42,7 @@ void ast_cli(int fd, char *fmt, ...) vasprintf(&stuff, fmt, ap); va_end(ap); write(fd, stuff, strlen(stuff)); + free(stuff); } ast_mutex_t clilock = AST_MUTEX_INITIALIZER;