summaryrefslogtreecommitdiff
path: root/tree.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2019-02-16 17:14:39 +0000
committerlhchavez <[email protected]>2020-02-22 19:21:44 -0800
commit2bb5930733a50b441c4a591dee931af00cf293f2 (patch)
treeb8ea865ec8ff69da466c834631b58f5fb4eb2dd1 /tree.go
parent26edffd5f57618d2927926fde4c4ac1fcba5d84a (diff)
Free() the copies of repository.LookupXxx()
`repository.LookupXxx()` allocate new go `Object`s that have a reference to a `C.git_object`. Those are then duplicated with `git_object_dup()`, so the original `Object`s linger unnecessarily until the Go GC kicks in. This change explicitly calls `Free()` on the originals to avoid unnecessary accumulation of garbage.
Diffstat (limited to 'tree.go')
0 files changed, 0 insertions, 0 deletions