From 6aeca47f9311da25dfd9308c99cba9950b178d55 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 27 Jul 2013 23:50:28 +0800 Subject: [PATCH] Modules/LVM - Fixed memory leak on cleanup --- KernelLand/Modules/Storage/LVM/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/KernelLand/Modules/Storage/LVM/main.c b/KernelLand/Modules/Storage/LVM/main.c index 7d747c1b..501e8a7b 100644 --- a/KernelLand/Modules/Storage/LVM/main.c +++ b/KernelLand/Modules/Storage/LVM/main.c @@ -111,6 +111,8 @@ int LVM_Cleanup(void) Mutex_Acquire(&vol->VolNode.Lock); if( vol->Type->Cleanup ) vol->Type->Cleanup( vol->Ptr ); + if( vol->CacheHandle ) + IOCache_Destroy(vol->CacheHandle); LOG("Removed volume %s", vol->Name); free(vol); } -- 2.20.1