Memory leak when using CString? #214
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#214
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?
@carlosmn
When converting Go string to C char* using C.CString(), we have to free memory allocated by C side. But I found some codes don't do C.free(), for example:
https://github.com/libgit2/git2go/blob/master/branch.go#L96
I think that is memory leak here.
Yes, that's right.