From c490c2f2819ed3373b32106ec1b03539917f2af0 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 21 Jan 2002 19:04:13 +0000 Subject: [PATCH] Insert a missing hash_remove. --- lib/vgcache/vgcache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vgcache/vgcache.c b/lib/vgcache/vgcache.c index 2ad924e3e..54a78c4c1 100644 --- a/lib/vgcache/vgcache.c +++ b/lib/vgcache/vgcache.c @@ -142,6 +142,8 @@ void vgcache_destroy_entry(struct vgname_entry *vgn) while (pvdh != &vgn->pvdevs) { pvdev = list_item(pvdh, struct pvdev_list); pvdh = pvdh->n; + if (_pvhash) + hash_remove(_pvhash, dev_name(pvdev->dev)); dbg_free(pvdev); } dbg_free(vgn->vgname); -- 2.43.5