1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

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)