diff --git a/lib/nvmf/vfio_user.c b/lib/nvmf/vfio_user.c index 9bddc73c2..dffec4ac0 100644 --- a/lib/nvmf/vfio_user.c +++ b/lib/nvmf/vfio_user.c @@ -719,6 +719,7 @@ destroy_qp(struct nvmf_vfio_user_ctrlr *ctrlr, uint16_t qid) unmap_qp(qpair); free(qpair->reqs_internal); + free(qpair); ctrlr->qp[qid] = NULL; }