]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: fix mem leak in nvmf_check_hostid_and_hostnqn()
authorMartin George <marting@netapp.com>
Mon, 15 Apr 2024 07:14:32 +0000 (12:44 +0530)
committerDaniel Wagner <wagi@monom.org>
Tue, 16 Apr 2024 14:01:29 +0000 (16:01 +0200)
commit7c878bbcb5493e63db45811d4b2f5851ae7f3a49
tree21dab196bcdf206340241e2c0abcb92e2c20be12
parent158eb8d82c497c104cf9c2d4665983084cc8ae0e
fabrics: fix mem leak in nvmf_check_hostid_and_hostnqn()

Valgrind revealed a mem leak in nvmf_check_hostid_and_hostnqn()
during nvme discover & connect. Leak traced to both hostid
pointers not getting freed for cases where the hostid value
matches the strings from both these respective hostid pointers.
Fix the same.

Signed-off-by: Martin George <marting@netapp.com>
fabrics.c