From 34a44d16b35c223f1ce36eb11b180adc3028ec8c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 9 Mar 2011 13:41:16 +1100 Subject: [PATCH] Close config file. --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 4c0c60c..cf3833f 100644 --- a/main.c +++ b/main.c @@ -415,6 +415,9 @@ static void read_config( struct rzip_control *control ) free(line); free(homeconf); + if (unlikely(fclose(fp))) + fatal("Failed to fclose fp in read_config\n"); + /* fprintf(stderr, "\nWindow = %d \ \nCompression Level = %d \ \nThreshold = %1.2f \