From 419ab539dd22b11279310745dbf78e5b18f50cce Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 18 Apr 2021 16:12:09 +0200 Subject: Clean up allocations --- cswave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cswave.c b/cswave.c index c6534e9..5460839 100644 --- a/cswave.c +++ b/cswave.c @@ -213,6 +213,7 @@ static size_t process(FILE* src, size_t column, sample_format fmt, int dst){ samples++; } + free(line); return samples; } @@ -318,7 +319,7 @@ int main(int argc, char** argv){ } free(normalized); } - + close(output_fd); return EXIT_SUCCESS; } -- cgit v1.2.3