From 503637d3a44fea1f60252da020c0b02f63ab7b11 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 12 Nov 2020 15:47:25 +0100 Subject: [PATCH] process_http_response: avoid memory leak Signed-off-by: Nikos Mavrogiannopoulos --- http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http.c b/http.c index 17da01ba..04b3dcea 100644 --- a/http.c +++ b/http.c @@ -684,6 +684,7 @@ int process_http_response(struct openconnect_info *vpninfo, int connect, vpn_progress(vpninfo, PRG_ERR, _("Cannot receive HTTP 1.0 body without closing connection\n")); openconnect_close_https(vpninfo, 0); + buf_free(hdrbuf); return -EINVAL; } -- 2.49.0