about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@openmailbox.org>2015-10-26 14:30:26 +0100
committerMichael Vetter <jubalh@openmailbox.org>2015-10-26 14:30:26 +0100
commit9b5cdf8ebd94702995ea023d5614fe6efcc7abca (patch)
tree66ffd9b39ec0571c8ca31e124ae254431c0aedd2 /tests/unittests
parent523d92e950f3eecb700dd2495c423cce3bfd0939 (diff)
downloadprofani-tty-9b5cdf8ebd94702995ea023d5614fe6efcc7abca.tar.gz
Fix resource leak
Run fclose after fopen in unittests.
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/helpers.c b/tests/unittests/helpers.c
index 564b2716..9cabb1e4 100644
--- a/tests/unittests/helpers.c
+++ b/tests/unittests/helpers.c
@@ -63,6 +63,7 @@ void load_preferences(void **state)
     if (f) {
         prefs_load();
     }
+    fclose(f);
 }
 
 void close_preferences(void **state)