Skip to content

Commit 031132a

Browse files
committed
fabrics: Fix leaking ctrl in nvmf_connect_disc_entry()
1 parent 34b5d8e commit 031132a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/nvme/fabrics.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ nvme_ctrl_t nvmf_connect_disc_entry(nvme_host_t h,
639639
}
640640

641641
if (nvme_ctrl_is_discovered(c)) {
642+
nvme_free_ctrl(c);
642643
errno = EAGAIN;
643644
return NULL;
644645
}

0 commit comments

Comments
 (0)