about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
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)