We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a39f18a + 21e0fc3 commit 1d683c1Copy full SHA for 1d683c1
src/refdb_fs.c
@@ -927,6 +927,7 @@ static int packed_remove_loose(refdb_fs_backend *backend)
927
continue;
928
929
if (error < 0) {
930
+ git_buf_free(&ref_content);
931
giterr_set(GITERR_REFERENCE, "failed to lock loose reference '%s'", ref->name);
932
return error;
933
}
@@ -957,6 +958,7 @@ static int packed_remove_loose(refdb_fs_backend *backend)
957
958
p_unlink(lock.path_original);
959
960
961
962
git_filebuf_cleanup(&lock);
963
return 0;
964
0 commit comments