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;