vendor/libgit2/src/diff_print.c in rugged-0.27.7 vs vendor/libgit2/src/diff_print.c in rugged-0.27.9
- old
+ new
@@ -371,12 +371,12 @@
if (git_buf_oom(out))
error = -1;
done:
- git_buf_dispose(&old_path);
- git_buf_dispose(&new_path);
+ git_buf_free(&old_path);
+ git_buf_free(&new_path);
return error;
}
static bool delta_is_unchanged(const git_diff_delta *delta)
@@ -444,12 +444,12 @@
if (git_buf_oom(out))
error = -1;
done:
- git_buf_dispose(&old_path);
- git_buf_dispose(&new_path);
+ git_buf_free(&old_path);
+ git_buf_free(&new_path);
return error;
}
static int format_binary(
@@ -507,12 +507,12 @@
error = diff_delta_format_with_paths(
pi->buf, delta, "Binary files %s and %s differ\n",
old_path.ptr, new_path.ptr);
done:
- git_buf_dispose(&old_path);
- git_buf_dispose(&new_path);
+ git_buf_free(&old_path);
+ git_buf_free(&new_path);
return error;
}
static int diff_print_patch_file_binary(
@@ -694,11 +694,11 @@
if (error) /* make sure error message is set */
giterr_set_after_callback_function(error, "git_diff_print");
}
- git_buf_dispose(&buf);
+ git_buf_free(&buf);
return error;
}
int git_diff_print_callback__to_buf(
@@ -774,10 +774,10 @@
if (error) /* make sure error message is set */
giterr_set_after_callback_function(error, "git_patch_print");
}
- git_buf_dispose(&temp);
+ git_buf_free(&temp);
return error;
}
/* print a git_patch to a git_buf */