reflog: free() ref given to us by dwim_log()
When dwim_log() returns the "ref" is always ether NULL or an xstrdup()'d string. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
c270b055d9
commit
3c8150497f
|
@ -653,6 +653,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
|
||||||
should_expire_reflog_ent,
|
should_expire_reflog_ent,
|
||||||
reflog_expiry_cleanup,
|
reflog_expiry_cleanup,
|
||||||
&cb);
|
&cb);
|
||||||
|
free(ref);
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue