mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:13:39 +03:00
Removed superfluous check of clist->name, as in this code path that pointer
has already been dereferenced so it is bound to be valid. Pointed out to us by coverity.com
This commit is contained in:
parent
a102c2c22b
commit
18be9882f7
1 changed files with 1 additions and 2 deletions
|
|
@ -614,8 +614,7 @@ Curl_cookie_add(struct SessionHandle *data,
|
|||
co->next = clist->next; /* get the next-pointer first */
|
||||
|
||||
/* then free all the old pointers */
|
||||
if(clist->name)
|
||||
free(clist->name);
|
||||
free(clist->name);
|
||||
if(clist->value)
|
||||
free(clist->value);
|
||||
if(clist->domain)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue