infiniband-diags: Fix memory leak in dump_multicast_tables

Coverity detected leak.

Submitted by:	bret_ketchum@dell.com
Reported by:	Coverity
Reviewed by:	hselasky, kib
MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D26228
This commit is contained in:
Eric van Gyzen 2020-08-31 16:18:48 +00:00
parent 536457e181
commit 76cc4c2047

View File

@ -222,6 +222,7 @@ char *dump_multicast_tables(ib_portid_t * portid, unsigned startlid,
fprintf(stderr, "SubnGet() failed"
"; MAD status 0x%x AM 0x%x\n",
status, mod);
free(mapnd);
return NULL;
}
}