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;