From c08e2398ab3ff647f7f95ab5ad8854fc71565b2e Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sun, 11 Feb 2024 19:53:51 +0100 Subject: [PATCH] nevermind I can't free getenv() Xddd --- modfetch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/modfetch.c b/modfetch.c index 60be82e..d2f3d62 100644 --- a/modfetch.c +++ b/modfetch.c @@ -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) {