smtp: fix memory leak in OOM
Regression since ce0881edee
Coverity CID 1418139 and CID 1418136 found it, but it was also seen in
torture testing.
This commit is contained in:
Родитель
7f794a224e
Коммит
1e548f7784
|
@ -550,8 +550,11 @@ static CURLcode smtp_perform_mail(struct connectdata *conn)
|
|||
if(!result)
|
||||
result = Curl_mime_rewind(&data->set.mimepost);
|
||||
|
||||
if(result)
|
||||
if(result) {
|
||||
free(from);
|
||||
free(auth);
|
||||
return result;
|
||||
}
|
||||
|
||||
data->state.infilesize = Curl_mime_size(&data->set.mimepost);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче