Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mg/signature-doc'
[gitweb.git]
/
builtin
/
reset.c
diff --git
a/builtin/reset.c
b/builtin/reset.c
index 092c3a5399c731e83058233f8e3e459be493e140..acd6278868b65981fd838b4ade327cdcaab51ccd 100644
(file)
--- a/
builtin/reset.c
+++ b/
builtin/reset.c
@@
-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;
}