Commit 1ed356dc by Vicent Marti

Frees

parent 979f75d8
...@@ -566,7 +566,7 @@ static void refdb_fs_backend__iterator_free(git_reference_iterator *_iter) ...@@ -566,7 +566,7 @@ static void refdb_fs_backend__iterator_free(git_reference_iterator *_iter)
size_t i; size_t i;
git_vector_foreach(&iter->loose, i, loose_path) { git_vector_foreach(&iter->loose, i, loose_path) {
free(loose_path); git__free(loose_path);
} }
git_vector_free(&iter->loose); git_vector_free(&iter->loose);
...@@ -1232,7 +1232,7 @@ static int setup_namespace(git_buf *path, git_repository *repo) ...@@ -1232,7 +1232,7 @@ static int setup_namespace(git_buf *path, git_repository *repo)
} }
git_buf_printf(path, "refs/namespaces/%s/refs", end); git_buf_printf(path, "refs/namespaces/%s/refs", end);
free(parts); git__free(parts);
/* Make sure that the folder with the namespace exists */ /* Make sure that the folder with the namespace exists */
if (git_futils_mkdir_r(git_buf_cstr(path), repo->path_repository, 0777) < 0) if (git_futils_mkdir_r(git_buf_cstr(path), repo->path_repository, 0777) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment