aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2021-04-18 16:12:09 +0200
committercbdev <cb@cbcdn.com>2021-04-18 16:12:09 +0200
commit419ab539dd22b11279310745dbf78e5b18f50cce (patch)
tree480eaa11553170ebd14ff4f44c28113320e4bc21
parent9a82789007d626b830f528e476c556e80ff59dcb (diff)
downloadcswave-419ab539dd22b11279310745dbf78e5b18f50cce.tar.gz
cswave-419ab539dd22b11279310745dbf78e5b18f50cce.tar.bz2
cswave-419ab539dd22b11279310745dbf78e5b18f50cce.zip
Clean up allocations
-rw-r--r--cswave.c3
1 files changed, 2 insertions, 1 deletions
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;
}