From 0a4400f369640a21d8ec838e63add8359ad79283 Mon Sep 17 00:00:00 2001 From: Rafat Hussain Date: Thu, 21 Mar 2019 08:16:53 +0530 Subject: [PATCH] Added fclose to plug minor leaks --- test/dwttest.c | 2 ++ test/modwttest.c | 2 ++ test/swttest.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/dwttest.c b/test/dwttest.c index ce2a92e..dd0a017 100644 --- a/test/dwttest.c +++ b/test/dwttest.c @@ -41,6 +41,8 @@ int main() { i++; } N = 256; + + fclose(ifp); inp = (double*)malloc(sizeof(double)* N); out = (double*)malloc(sizeof(double)* N); diff --git a/test/modwttest.c b/test/modwttest.c index 426a41c..270119b 100644 --- a/test/modwttest.c +++ b/test/modwttest.c @@ -42,6 +42,8 @@ int main() { i++; } N = 177; + + fclose(ifp); inp = (double*)malloc(sizeof(double)* N); out = (double*)malloc(sizeof(double)* N); diff --git a/test/swttest.c b/test/swttest.c index b6da495..5174edc 100644 --- a/test/swttest.c +++ b/test/swttest.c @@ -41,7 +41,7 @@ int main() { i++; } N = 256; - + fclose(ifp); inp = (double*)malloc(sizeof(double)* N); out = (double*)malloc(sizeof(double)* N); diff = (double*)malloc(sizeof(double)* N);