gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 315/411: hsts: Remove pointless call to free in errorpath


From: gnunet
Subject: [gnurl] 315/411: hsts: Remove pointless call to free in errorpath
Date: Wed, 13 Jan 2021 01:22:10 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 085f91036ca0170e6820c0cf4b31138a36e827bd
Author: Daniel Gustafsson <daniel@yesql.se>
AuthorDate: Thu Nov 5 09:42:38 2020 +0100

    hsts: Remove pointless call to free in errorpath
    
    The line variable will always be NULL in the error path, so remove
    the free call since it's pointless.
    
    Closes #6170
    Reviewed-by: Daniel Stenberg <daniel@haxx.se>
---
 lib/hsts.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/hsts.c b/lib/hsts.c
index f828077c7..866f3e9ff 100644
--- a/lib/hsts.c
+++ b/lib/hsts.c
@@ -498,7 +498,6 @@ static CURLcode hsts_load(struct hsts *h, const char *file)
 
   fail:
   Curl_safefree(h->filename);
-  free(line);
   fclose(fp);
   return CURLE_OUT_OF_MEMORY;
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]