mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 16:06:22 +00:00
Slightly improve http_download related allocations.
* use `calloc()` to allocate zero-initialized structs. * order the allocation of members by their declaration. * order the freeing of members in reverse order. * move init of `silent` flag in plugin case. * fix double free of `tmpname` in `aesgcm_file_get()`. * make some functions static. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
@@ -236,9 +236,9 @@ out:
|
||||
download_processes = g_slist_remove(download_processes, download);
|
||||
pthread_mutex_unlock(&lock);
|
||||
|
||||
free(download->id);
|
||||
free(download->url);
|
||||
free(download->filename);
|
||||
free(download->url);
|
||||
free(download->id);
|
||||
free(download);
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user