diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-10-29 12:53:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-10-29 12:53:54 -0700 |
commit | e2b7eaf0ca3897940961d23392d4ff718867ea9f (patch) | |
tree | bf24e41872b28f8dc50db5f24e0222117da71da6 /builtin-add.c | |
parent | 8371d8fd094548c1d02b8583fdbff8204a725ffc (diff) | |
parent | e720c4382f6c9317a3b495e80c7dfc609a0db5e6 (diff) | |
download | git-e2b7eaf0ca3897940961d23392d4ff718867ea9f.tar.gz |
Merge branch 'maint'
* maint:
RelNotes-1.5.3.5: describe recent fixes
merge-recursive.c: mrtree in merge() is not used before set
sha1_file.c: avoid gcc signed overflow warnings
Fix a small memory leak in builtin-add
honor the http.sslVerify option in shell scripts
Diffstat (limited to 'builtin-add.c')
-rw-r--r-- | builtin-add.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-add.c b/builtin-add.c index f9a65803d8..b8e6094b21 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -44,6 +44,7 @@ static void prune_directory(struct dir_struct *dir, const char **pathspec, int p die("pathspec '%s' did not match any files", pathspec[i]); } + free(seen); } static void fill_directory(struct dir_struct *dir, const char **pathspec, @@ -135,6 +136,7 @@ static void refresh(int verbose, const char **pathspec) if (!seen[i]) die("pathspec '%s' did not match any files", pathspec[i]); } + free(seen); } static int git_add_config(const char *var, const char *value) |