summaryrefslogtreecommitdiffstats
path: root/revision.h
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2009-07-16 23:25:19 +0200
committerJunio C Hamano <gitster@pobox.com>2009-07-17 00:09:21 +0200
commitb45a09c4b4a80ccc6eeb0f390ab8f4eb6f31c922 (patch)
tree68ddec4a335c467bc84624b018e71259d4e5ff24 /revision.h
parentrefs.c: release file descriptor on error return (diff)
downloadgit-b45a09c4b4a80ccc6eeb0f390ab8f4eb6f31c922.tar.xz
git-b45a09c4b4a80ccc6eeb0f390ab8f4eb6f31c922.zip
sha1_name.c: avoid unnecessary strbuf_release
When we fall back to a standard for_each_reflog_ent() after failing to find the nth branch switch (or if we had a short reflog) with the call to for_each_recent_reflog_ent(), we do not need to free the memory allocated for our strbuf's since a strbuf_reset() will be performed in grab_nth_branch_switch() before assigning to the entry. Plus, the strbuf_release() negates the non-zero hint we initially gave to strbuf_init() just above these lines. Signed-off-by: Brandon Casey <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.h')
0 files changed, 0 insertions, 0 deletions