From 017a63ecd7f2ff30233b50d455355400197bb660 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 13 Jan 2012 23:39:56 +0100 Subject: [PATCH] audioc.c: Always free IO buffer. This 8K buffer is allocated but never freed. --- audioc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audioc.c b/audioc.c index 1baa6c34..5f928889 100644 --- a/audioc.c +++ b/audioc.c @@ -344,6 +344,7 @@ int main(int argc, char *argv[]) ret = write_all(STDOUT_FILENO, buf, &n); } while (ret >= 0); out: + free(buf); if (ret < 0) PARA_ERROR_LOG("%s\n", para_strerror(-ret)); return ret < 0? EXIT_FAILURE : EXIT_SUCCESS; -- 2.39.5