fixed double memory leak in init_config fn
This commit is contained in:
parent
b385187d39
commit
48208d0991
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user