]> www.infradead.org Git - users/sagi/libnvme.git/commit
tree: use cleanup functions
authorCaleb Sander <csander@purestorage.com>
Tue, 28 Nov 2023 21:32:21 +0000 (14:32 -0700)
committerDaniel Wagner <wagi@monom.org>
Fri, 1 Dec 2023 09:46:56 +0000 (10:46 +0100)
commitba533deb21555ecfbd08c62cdf78b643a8591aa0
treee4fec1ac47141e8d566b73b1648c3bffebe35373
parentc35a784585ef68aad61be2f392476e40ccf0e811
tree: use cleanup functions

Use cleanup attributes from cleanup.h to avoid boilerplate cleanup code.
Introduce struct dirents and the corresponding _cleanup_dirents_
to clean up arrays of directory entries.

Signed-off-by: Caleb Sander <csander@purestorage.com>
src/nvme/tree.c