]> www.infradead.org Git - users/sagi/libnvme.git/commit
fabrics: Duplicate strings when merging configs
authorDaniel Wagner <dwagner@suse.de>
Fri, 28 Oct 2022 14:42:21 +0000 (16:42 +0200)
committerDaniel Wagner <dwagner@suse.de>
Fri, 28 Oct 2022 14:46:54 +0000 (16:46 +0200)
commitd187b21add042f941436f94d5dc75bb566f9fe3d
tree913f0f870bf9692ee8971ab2dadfc8cb3ba81f48
parent1dd2e76d73df8ba6044eaa5455eff2dce36d86d8
fabrics: Duplicate strings when merging configs

We have to use strdup here, because the merged config will be freeing
these pointers eventually. Without it, we are going to double free it.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/fabrics.c