Skip to content

Commit

Permalink
cfg: Fix double-free on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
any1 committed Sep 15, 2024
1 parent edd30e6 commit b9e905b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ int cfg_load(struct cfg* self, const char* requested_path)
failure:
cfg_destroy(self);
free(line);
free(self->directory);
fclose(stream);
return lineno;
}
Expand Down

0 comments on commit b9e905b

Please sign in to comment.