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:
parent
523d92e950
commit
9b5cdf8ebd
@ -63,6 +63,7 @@ void load_preferences(void **state)
|
||||
if (f) {
|
||||
prefs_load();
|
||||
}
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
void close_preferences(void **state)
|
||||
|
Loading…
Reference in New Issue
Block a user