diff options
author | Chandra Pratap <chandrapratap3519@gmail.com> | 2024-08-13 20:04:48 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 10:08:02 -0700 |
commit | 3dd4fb13a080ba9cbcf047e94b7fc4ed35b6153e (patch) | |
tree | 9a07eb886a2adeaa98349ea591d7543aad33201b /t/unit-tests/t-oid-array.c | |
parent | 5b539a53613355a22f5c525eebdd9117fdaedb90 (diff) |
t-reftable-readwrite: use free_names() instead of a for loop
free_names() as defined by reftable/basics.{c,h} frees a NULL
terminated array of malloced strings along with the array itself.
Use this function instead of a for loop to free such an array.
Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-oid-array.c')
0 files changed, 0 insertions, 0 deletions