summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2011-07-18 01:54:40 +0300
committerKirill A. Shutemov <kirill@shutemov.name>2011-07-19 16:09:09 +0300
commit5c6ae0099977e2e950e98b9bf07ce9683b6df059 (patch)
tree2e6c2b5b3c94e8702a9532e8e605c20b3a0f3250 /src/commit.c
parent89fb9d04071172b12aa6718ec881ee0c0812b768 (diff)
downloadlibgit2-5c6ae0099977e2e950e98b9bf07ce9683b6df059.tar.gz
refs: fix memory leak on rename
Current implementation of git_reference_rename() removes 'ref' from loose cache, but not frees it. In result 'ref' is not reachable any more and we have got memory leak. Let's re-add 'ref' with corrected name to loose cache instead of 'new_ref' and free 'new_ref' properly. 'rollback' path seems leak too. git_reference_rename() need to be rewritten for proper resource management. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions