]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: fix some memory leaks
authorMartin Wilck <mwilck@suse.com>
Thu, 25 Feb 2021 22:14:19 +0000 (23:14 +0100)
committerMartin Wilck <mwilck@suse.com>
Tue, 30 Mar 2021 15:46:22 +0000 (17:46 +0200)
commit2272ca4fa9f885046c555559946b14d345db983c
tree1fbc0c3f3162206dbfdf4b85c46dd58e80cac6a2
parent5c2bf99723ad41f4ab2479718adbd37664791b3f
fabrics: fix some memory leaks

None of these are critical for "nvme discover" or "nvme connect-all".
Still, silencing valgrind's error messages by fixing them gives some
peace of mind, and a longer-running program like the forthcomint
nvme monitor, leak checks are more important.

Use the previously introduced cleanup macros for this purpose.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
fabrics.c