From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Subject: [PATCH 1/3] fetch: free all the additional refspecs Date: Thu, 6 Oct 2011 23:21:45 +0200 Message-ID: <1317936107-1230-2-git-send-email-cmn@elego.de> References: <20111006205103.GA1271@erythro.kitwarein.com> <1317936107-1230-1-git-send-email-cmn@elego.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Jeff King , Junio C Hamano , mathstuf@gmail.com To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Oct 06 23:22:01 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBvOC-0000sC-6M for gcvg-git-2@lo.gmane.org; Thu, 06 Oct 2011 23:22:00 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965117Ab1JFVV6 convert rfc822-to-quoted-printable (ORCPT ); Thu, 6 Oct 2011 17:21:58 -0400 Received: from kimmy.cmartin.tk ([91.121.65.165]:53062 "EHLO kimmy.cmartin.tk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759320Ab1JFVVw (ORCPT ); Thu, 6 Oct 2011 17:21:52 -0400 Received: from centaur.lab.cmartin.tk (brln-4db9e4ec.pool.mediaWays.net [77.185.228.236]) by kimmy.cmartin.tk (Postfix) with ESMTPA id 9C7404615A; Thu, 6 Oct 2011 23:21:26 +0200 (CEST) Received: (nullmailer pid 1274 invoked by uid 1000); Thu, 06 Oct 2011 21:21:47 -0000 X-Mailer: git-send-email 1.7.5.2.354.g349bf In-Reply-To: <1317936107-1230-1-git-send-email-cmn@elego.de> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Carlos Mart=C3=ADn Nieto --- builtin/fetch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin/fetch.c b/builtin/fetch.c index 7a4e41c..30b485e 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -883,7 +883,7 @@ static int fetch_one(struct remote *remote, int arg= c, const char **argv) atexit(unlock_pack); refspec =3D parse_fetch_refspec(ref_nr, refs); exit_code =3D do_fetch(transport, refspec, ref_nr); - free(refspec); + free_refspec(ref_nr, refspec); transport_disconnect(transport); transport =3D NULL; return exit_code; --=20 1.7.5.2.354.g349bf