smtp: free a temp resource

The returned address needs to be freed.

Follow-up to e3905de819
Spotted by Coverity

Closes #13038
This commit is contained in:
Daniel Stenberg 2024-03-04 10:07:07 +01:00
parent e455490c3c
commit 07b667567f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -677,6 +677,7 @@ static CURLcode smtp_perform_mail(struct Curl_easy *data)
/* An invalid mailbox was provided but we'll simply let the server
worry about it */
auth = aprintf("<%s>", address);
free(address);
}
else
/* Empty AUTH, RFC-2554, sect. 5 */