nevermind I can't free getenv() Xddd

This commit is contained in:
jacekpoz 2024-02-11 19:53:51 +01:00
parent cca7224559
commit c08e2398ab
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -218,14 +218,12 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "error: failed formatting config dir (this shouldn't happen)");
exit(EXIT_FAILURE);
}
free(home);
}
if (asprintf(&config_path, "%s/modfetch.conf", config_dir) < 0) {
fprintf(stderr, "error: failed formatting config path (this shouldn't happen)");
exit(EXIT_FAILURE);
}
free(config_dir);
for (size_t i = 1; i < (size_t)argc; ++i) {
if (strcmp(argv[i], "-c") == 0 || strcmp(argv[i], "--config") == 0) {