vendor/libgit2/src/win32/findfile.c in rugged-0.27.7 vs vendor/libgit2/src/win32/findfile.c in rugged-0.27.9
- old
+ new
@@ -156,11 +156,11 @@
if (buf.size)
git_buf_join(out, GIT_PATH_LIST_SEPARATOR, out->ptr, buf.ptr);
}
}
- git_buf_dispose(&buf);
+ git_buf_free(&buf);
return (git_buf_oom(out) ? -1 : 0);
}
int git_win32__find_system_dirs(git_buf *out, const wchar_t *subdir)
@@ -183,10 +183,10 @@
if (!win32_find_git_in_registry(
&buf, HKEY_LOCAL_MACHINE, REG_MSYSGIT_INSTALL, subdir) && buf.size)
git_buf_join(out, GIT_PATH_LIST_SEPARATOR, out->ptr, buf.ptr);
- git_buf_dispose(&buf);
+ git_buf_free(&buf);
return (git_buf_oom(out) ? -1 : 0);
}
int git_win32__find_global_dirs(git_buf *out)