From patchwork Mon Aug 26 07:49:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Hommey X-Patchwork-Id: 11114211 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BC0914DE for ; Mon, 26 Aug 2019 07:49:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3FE4D2080C for ; Mon, 26 Aug 2019 07:49:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730143AbfHZHtQ (ORCPT ); Mon, 26 Aug 2019 03:49:16 -0400 Received: from ns332406.ip-37-187-123.eu ([37.187.123.207]:46734 "EHLO glandium.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730069AbfHZHtQ (ORCPT ); Mon, 26 Aug 2019 03:49:16 -0400 Received: from glandium by mitsuha.glandium.org with local (Exim 4.92) (envelope-from ) id 1i29kV-0006CV-26; Mon, 26 Aug 2019 16:49:11 +0900 From: Mike Hommey To: git@vger.kernel.org Cc: gitster@pobox.com Subject: [PATCH] http: don't leak urlmatch_config.vars Date: Mon, 26 Aug 2019 16:49:11 +0900 Message-Id: <20190826074911.23792-1-mh@glandium.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Signed-off-by: Mike Hommey --- http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http.c b/http.c index 27aa0a3192..9e33584f2d 100644 --- a/http.c +++ b/http.c @@ -1073,6 +1073,7 @@ void http_init(struct remote *remote, const char *url, int proactive_auth) git_config(urlmatch_config_entry, &config); free(normalized_url); + string_list_clear(&config.vars, 1); #if LIBCURL_VERSION_NUM >= 0x073800 if (http_ssl_backend) {