diff options
author | René Scharfe <l.s.r@web.de> | 2024-12-28 10:48:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-28 08:00:44 -0800 |
commit | e4981ed1e72d3f25da901b9415d2c4805bed0dbc (patch) | |
tree | bfd4661fe27c1992f25113b315ec427f296133b6 /builtin/hook.c | |
parent | 2cca185e85171c462166839cfd6ee57c09573160 (diff) |
reftable: handle realloc error in parse_names()
Check the final reallocation for adding the terminating NULL and handle
it just like those in the loop. Simply use REFTABLE_ALLOC_GROW instead
of keeping the REFTABLE_REALLOC_ARRAY call and adding code to preserve
the original pointer value around it.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/hook.c')
0 files changed, 0 insertions, 0 deletions