diff --git a/drivers/virtio/virtnet.c b/drivers/virtio/virtnet.c index 7230fa93326e29b47883d3222323fea7f72b0393..7b6ee6281f522937411ccb4aa96f602f745d64ef 100644 --- a/drivers/virtio/virtnet.c +++ b/drivers/virtio/virtnet.c @@ -258,6 +258,7 @@ static err_t ConfigQueue(struct VirtNetif *nic) buf = VirtmmioConfigQueue(&nic->dev, (VADDR_T)base, qsz, VIRTQ_NUM_NET); if (buf == 0) { + free(base); return ERR_IF; }