tool_writeout: bail out proper on OOM

Closes #19667
This commit is contained in:
Daniel Stenberg 2025-11-24 13:08:37 +01:00
parent c77bed81a2
commit 039fb84cb4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -763,6 +763,8 @@ void ourWriteOut(struct OperationConfig *config, struct per_transfer *per,
variables, CURL_ARRAYSIZE(variables),
sizeof(variables[0]), matchvar);
}
else
break;
if(wv) {
switch(wv->id) {
case VAR_ONERROR: