Skip to content

Commit ec535c1

Browse files
committed
libgit2: fix double-free
1 parent f0f95d9 commit ec535c1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

book/B-embedding-git/sections/libgit2.asc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const git_oid *tree_id = git_commit_tree_id(commit);
2727
2828
// Cleanup
2929
git_commit_free(commit);
30-
git_object_free(head_commit);
3130
git_repository_free(repo);
3231
-----
3332

0 commit comments

Comments
 (0)