vhost: restore mbuf first when freeing zmbuf
[dpdk.git] / lib / librte_vhost / vhost_user.c
index b086ad9..e3ddf25 100644 (file)
@@ -1218,6 +1218,7 @@ free_zmbufs(struct vhost_virtqueue *vq)
             zmbuf != NULL; zmbuf = next) {
                next = TAILQ_NEXT(zmbuf, next);
 
+               restore_mbuf(zmbuf->mbuf);
                rte_pktmbuf_free(zmbuf->mbuf);
                TAILQ_REMOVE(&vq->zmbuf_list, zmbuf, next);
        }