aboutsummaryrefslogtreecommitdiff
path: root/builtin-add.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-10-29 12:53:54 -0700
committerJunio C Hamano <gitster@pobox.com>2007-10-29 12:53:54 -0700
commite2b7eaf0ca3897940961d23392d4ff718867ea9f (patch)
treebf24e41872b28f8dc50db5f24e0222117da71da6 /builtin-add.c
parent8371d8fd094548c1d02b8583fdbff8204a725ffc (diff)
parente720c4382f6c9317a3b495e80c7dfc609a0db5e6 (diff)
downloadgit-e2b7eaf0ca3897940961d23392d4ff718867ea9f.tar.gz
git-e2b7eaf0ca3897940961d23392d4ff718867ea9f.tar.xz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-add.c b/builtin-add.c
index f9a65803d..b8e6094b2 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)