List for cgit developers and users
 help / color / mirror / Atom feed
From: jamie.couture at gmail.com (Jamie Couture)
Subject: [PATCH 1/2] avoid memory leak
Date: Fri,  3 Jun 2011 19:21:01 -0400	[thread overview]
Message-ID: <1307143262-11018-2-git-send-email-jamie.couture@gmail.com> (raw)
In-Reply-To: <1307143262-11018-1-git-send-email-jamie.couture@gmail.com>

From: Jamie Couture <jamie.couture at gmail.com>

free rel when we're done
---
 scan-tree.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scan-tree.c b/scan-tree.c
index 627af1b..3f579ec 100644
--- a/scan-tree.c
+++ b/scan-tree.c
@@ -155,6 +155,8 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
 		config_fn = fn;
 		parse_configfile(xstrdup(p), &repo_config);
 	}
+
+	free(rel);
 }
 
 static void scan_path(const char *base, const char *path, repo_config_fn fn)
-- 
1.7.5.4





  reply	other threads:[~2011-06-03 23:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03 23:21 [PATCH 0/2] Set section via git config jamie.couture
2011-06-03 23:21 ` jamie.couture [this message]
2011-06-06 16:57   ` [PATCH 1/2] avoid memory leak larsh
2011-06-03 23:21 ` [PATCH 2/2] Add feature: obtain repo section from git config jamie.couture
2011-06-06 17:13   ` larsh
2011-06-06 17:38     ` mailings
2011-06-06 17:48       ` larsh
2011-06-06 18:18         ` mailings
2011-06-06 18:31       ` jamie.couture
2011-06-06 18:39         ` mailings
  -- strict thread matches above, loose matches on Subject: below --
2011-06-03 13:54 [PATCH 1/2] avoid memory leak jamie.couture
     [not found] <jamie.couture@gmail.com>
2011-06-02 23:40 ` jamie.couture
2011-06-03  7:19   ` mailings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307143262-11018-2-git-send-email-jamie.couture@gmail.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).