core-tutorial: Use new syntax for git-merge.
[gitweb.git] / builtin-add.c
index 3d8b8b4f89514e0a8f7af1c2c7dc2f8ae372129e..373f87f9f296917a8d72c93307f2bb94813b6911 100644 (file)
@@ -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,
@@ -140,6 +141,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)