diff options
Diffstat (limited to 'src/pathspec.c')
| -rw-r--r-- | src/pathspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index 998b6fb36..3415f66e5 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -36,7 +36,7 @@ char *git_pathspec_prefix(const git_strarray *pathspec) git_buf_truncate(&prefix, scan - prefix.ptr); if (prefix.size <= 0) { - git_buf_free(&prefix); + git_buf_dispose(&prefix); return NULL; } |
