mirror of
https://github.com/curl/curl.git
synced 2026-08-06 04:26:18 +03:00
tidy-up: replace Curl_safefree with free before re-assignment
Also drop `NULL` assignments after `Curl_safefree()`. Closes #16640
This commit is contained in:
parent
9b523773b8
commit
57218d5327
15 changed files with 45 additions and 49 deletions
|
|
@ -839,7 +839,6 @@ int formparse(struct OperationConfig *config,
|
|||
goto fail;
|
||||
}
|
||||
Curl_safefree(part->data);
|
||||
part->data = NULL;
|
||||
part->size = -1;
|
||||
res = CURLE_OK;
|
||||
}
|
||||
|
|
@ -876,7 +875,6 @@ int formparse(struct OperationConfig *config,
|
|||
goto fail;
|
||||
}
|
||||
Curl_safefree(part->data);
|
||||
part->data = NULL;
|
||||
part->size = -1;
|
||||
res = CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue