From: Steven Luong Date: Tue, 25 Jun 2019 20:47:06 +0000 (-0700) Subject: devices: virtio pci leaking spinlock X-Git-Tag: v20.01-rc0~288 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=e5584965b7bf4e196bbddebc8a663fafb87c1f86 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 --- 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); }