Fix resource leak

Run fclose after fopen in unittests.
This commit is contained in:
Michael Vetter
2015-10-26 14:30:26 +01:00
parent 523d92e950
commit 9b5cdf8ebd

View File

@@ -63,6 +63,7 @@ void load_preferences(void **state)
if (f) {
prefs_load();
}
fclose(f);
}
void close_preferences(void **state)