From 07b667567f63a1c30f6cfae1898af55cb6090906 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Mar 2024 10:07:07 +0100 Subject: [PATCH] smtp: free a temp resource The returned address needs to be freed. Follow-up to e3905de8196d67b89df1602feb84c1f993211b20 Spotted by Coverity Closes #13038 --- lib/smtp.c | 1 + 1 file changed, 1 insertion(+) 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 */