diff options
author | Michael Vetter <jubalh@openmailbox.org> | 2015-10-26 14:30:26 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@openmailbox.org> | 2015-10-26 14:30:26 +0100 |
commit | 9b5cdf8ebd94702995ea023d5614fe6efcc7abca (patch) | |
tree | 66ffd9b39ec0571c8ca31e124ae254431c0aedd2 | |
parent | 523d92e950f3eecb700dd2495c423cce3bfd0939 (diff) | |
download | profani-tty-9b5cdf8ebd94702995ea023d5614fe6efcc7abca.tar.gz |
Fix resource leak
Run fclose after fopen in unittests.
-rw-r--r-- | tests/unittests/helpers.c | 1 |
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) |