mirror of
https://github.com/curl/curl.git
synced 2026-06-13 16:15:38 +03:00
unit1675: fix potential memory leak on dynbuf fail path
Spotted by GitHub Code Quality Closes #21922
This commit is contained in:
parent
4aa8cc3c4a
commit
bbb226b226
1 changed files with 1 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ static CURLcode test_unit1675(const char *arg)
|
|||
int rc;
|
||||
curlx_dyn_reset(&host);
|
||||
if(curlx_dyn_add(&host, tests[i].in)) {
|
||||
curlx_dyn_free(&host);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
rc = ipv4_normalize(&host);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue