mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:53:32 +03:00
add null-pointer check
This commit is contained in:
parent
39e5fa6ae8
commit
e29f62f0a7
2 changed files with 4 additions and 2 deletions
|
|
@ -45,7 +45,8 @@ hash_element_dtor(void *user, void *element)
|
|||
if(e->key)
|
||||
free(e->key);
|
||||
|
||||
h->dtor(e->ptr);
|
||||
if(e->ptr)
|
||||
h->dtor(e->ptr);
|
||||
|
||||
free(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue