summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c
index c7a652896..c93e36b39 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -439,7 +439,7 @@ static int file_cb(
goto out;
out:
- git_buf_free(&buf);
+ git_buf_dispose(&buf);
return error;
}
@@ -477,7 +477,7 @@ static int line_cb(
goto out;
out:
- git_buf_free(&buf);
+ git_buf_dispose(&buf);
return error;
}