Bah, it needs the free apparently
authorMark Spencer <markster@digium.com>
Wed, 22 Oct 2003 04:03:15 +0000 (04:03 +0000)
committerMark Spencer <markster@digium.com>
Wed, 22 Oct 2003 04:03:15 +0000 (04:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1653 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cli.c

diff --git a/cli.c b/cli.c
index d577943..ae6876f 100755 (executable)
--- 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;