]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/record: handle allocation failures on copy
authorPatrick Steinhardt <ps@pks.im>
Wed, 2 Oct 2024 10:55:40 +0000 (12:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2024 14:53:52 +0000 (07:53 -0700)
commitea194f9c4690de89f9f776517b1c76d706ab0ae8
treef6a09a259161886daa0057bcc6e5ebd28d00fee0
parenteef7bcdafe0037f14a96c564ace899342b9ed0fb
reftable/record: handle allocation failures on copy

Handle allocation failures when copying records. While at it, convert
from `xstrdup()` to `reftable_strdup()`. Adapt callsites to check for
error codes.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/record.c
reftable/record.h