fixed double memory leak in init_config fn

This commit is contained in:
Václav Šmejkal 2024-08-31 13:02:32 +02:00
parent b385187d39
commit 48208d0991
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -69,11 +69,13 @@ void init_config(char *filename)
//CLEANUP
curl_easy_cleanup(curl);
why2_deallocate(buffer);
why2_deallocate(path);
why2_deallocate(config_dir);
why2_deallocate(file_buffer);
}
//DEALLOCATION
why2_deallocate(path);
why2_deallocate(buffer);
}
char *config(char *key, enum CONFIG_TYPES type)