mirror of
https://github.com/curl/curl.git
synced 2026-07-16 08:27:16 +03:00
tool/var: free memory on OOM
Coverity detected this memory leak in OOM situation
Follow-up to 2e160c9c65
Closes #11575
This commit is contained in:
parent
ddb179586f
commit
c17bf311f1
1 changed files with 3 additions and 3 deletions
|
|
@ -154,11 +154,11 @@ static ParameterError varfunc(struct GlobalConfig *global,
|
|||
}
|
||||
|
||||
/* put it in the output */
|
||||
if(curlx_dyn_add(out, enc)) {
|
||||
if(curlx_dyn_add(out, enc))
|
||||
err = PARAM_NO_MEM;
|
||||
break;
|
||||
}
|
||||
curl_free(enc);
|
||||
if(err)
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if(FUNCMATCH(f, FUNC_B64, FUNC_B64_LEN)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue