Index memory leaks? #267
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#267
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Index
hasFree()
method andnewIndexFromC()
makes sure the method is called.newIndexFromC()
is used inRepository.Index()
, but not inNewIndex()
andOpenIndex()
.I think this causes memory leaks when we use these functions without calling
Index.Free()
explicitly.Yes, that is correct. Those uses do not set the finalizer to free the C memory. It's likely a result of
newIndexFromC()
not existing when those were created.