push options: {pre,post}-receive hook learns about push options
[gitweb.git] / builtin / reset.c
index 092c3a5399c731e83058233f8e3e459be493e140..acd6278868b65981fd838b4ade327cdcaab51ccd 100644 (file)
@@ -158,7 +158,7 @@ static int read_from_tree(const struct pathspec *pathspec,
                return 1;
        diffcore_std(&opt);
        diff_flush(&opt);
-       free_pathspec(&opt.pathspec);
+       clear_pathspec(&opt.pathspec);
 
        return 0;
 }