From e5584965b7bf4e196bbddebc8a663fafb87c1f86 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Tue, 25 Jun 2019 13:47:06 -0700 Subject: devices: virtio pci leaking spinlock Memory is dirt cheap. But there is no need to throw it away. Type: fix Change-Id: I155130ab3c435b1c04d7c0e9f54795b8de9383d9 Signed-off-by: Steven Luong --- src/vnet/devices/virtio/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c index f53552a8436..1acbb3224f0 100644 --- a/src/vnet/devices/virtio/pci.c +++ b/src/vnet/devices/virtio/pci.c @@ -1298,6 +1298,7 @@ virtio_pci_delete_if (vlib_main_t * vm, virtio_if_t * vif) virtio_free_used_desc (vm, vring); } vec_free (vring->buffers); + clib_spinlock_free (&vring->lockp); vlib_physmem_free (vm, vring->desc); } -- cgit 1.2.3-korg