nvme: free tqpair on error paths
Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: I7abcead55f2eda0a7b8308f81ace70d8a1a59f2d Reviewed-on: https://review.gerrithub.io/434079 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
dfff013c04
commit
5ecc5ef110
@ -1712,6 +1712,7 @@ nvme_tcp_ctrlr_create_qpair(struct spdk_nvme_ctrlr *ctrlr,
|
||||
|
||||
rc = nvme_qpair_init(qpair, qid, ctrlr, qprio, num_requests);
|
||||
if (rc != 0) {
|
||||
free(tqpair);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user