From: Daniel Stenberg Date: Mon, 4 Mar 2024 09:07:07 +0000 (+0100) Subject: smtp: free a temp resource X-Git-Tag: curl-8_7_0~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07b667567f63a1c30f6cfae1898af55cb6090906;p=thirdparty%2Fcurl.git smtp: free a temp resource The returned address needs to be freed. Follow-up to e3905de8196d67b89df1602feb84c1f993211b20 Spotted by Coverity Closes #13038 --- diff --git a/lib/smtp.c b/lib/smtp.c index 605bb16eeb..a937fbf217 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -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 */