From cc0ee6fe14e9198cf1a26970ff16c48f308afeeb Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Sat, 16 Nov 2024 07:27:02 +0800 Subject: [PATCH] socket_http_get_recursive: Free `err` --- librz/socket/socket_http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/librz/socket/socket_http.c b/librz/socket/socket_http.c index e8ed020f491..e1c077031e3 100644 --- a/librz/socket/socket_http.c +++ b/librz/socket/socket_http.c @@ -208,6 +208,7 @@ static char *socket_http_get_recursive(const char *url, int *code, int *rlen, ut free(curl_env); if (err) { eprintf("%s", err); + free(err); } if (!ret || !res) { return NULL;