Skip to content

Commit

Permalink
settings: Free the file name on cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shishkin <[email protected]>
  • Loading branch information
virtuoso committed Oct 5, 2024
1 parent 548dd51 commit 668808e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ struct settings *settings_init(void *cb, void *data)

void settings_done(struct settings *settings)
{
#ifndef __EMSCRIPTEN__
free(settings_file);
#endif /* !__EMSCRIPTEN__ */
settings_store(settings);
json_free(settings->root);
settings->ready = false;
Expand Down

0 comments on commit 668808e

Please sign in to comment.