]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
do_discover: free cfg.device when resetting it
authorMartin Wilck <mwilck@suse.com>
Fri, 5 Mar 2021 20:19:10 +0000 (21:19 +0100)
committerMartin Wilck <mwilck@suse.com>
Tue, 30 Mar 2021 13:14:01 +0000 (15:14 +0200)
commitc335423916457f43290d9725c6560210ca2ea287
tree28572fd0acf6b01c57e2087d0fa1da5204c71a80
parent14d0e0f7e0c1b420da65783881c064e49ac7d6d7
do_discover: free cfg.device when resetting it

cfg.device might have been allocated by a previous call to
find_ctrl_with_connectargs(), therefore free it. We must make sure
that cfg.device is always on the heap, thus change fabrics_discover()
accordingly.
fabrics.c