Code

for_each_reflog_ent: do not leak FILE *
authorJunio C Hamano <junkio@cox.net>
Fri, 19 Jan 2007 07:25:54 +0000 (23:25 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 19 Jan 2007 07:25:54 +0000 (23:25 -0800)
commit2266bf27b354a08522406eff916898b6300ddfa0
tree630d0b33ac812c37883f32e2a4781372aae51c9e
parent72fe6a59890870ed9c3e9e1e6381fc0d7ba75fe4
for_each_reflog_ent: do not leak FILE *

The callback function can signal an early return by returning non-zero,
but the function leaked the FILE * opened on the reflog when doing so.

Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c