Skip to content

Commit ca66ebb

Browse files
committed
fixup! diff --no-index: fix logic for paths ending in '/'
1 parent 8a9e741 commit ca66ebb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

diff-no-index.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ int diff_no_index(struct rev_info *revs, const struct git_hash_algo *algop,
436436
for (i = 0; i < ARRAY_SIZE(to_free); i++)
437437
free(to_free[i]);
438438
strbuf_release(&replacement);
439+
strbuf_release(&ps_match1);
440+
strbuf_release(&ps_match2);
439441
if (ps)
440442
clear_pathspec(ps);
441443
return ret;

0 commit comments

Comments
 (0)