From: John Hodge Date: Sat, 27 Jul 2013 15:50:28 +0000 (+0800) Subject: Modules/LVM - Fixed memory leak on cleanup X-Git-Tag: rel0.15~312 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6aeca47f9311da25dfd9308c99cba9950b178d55;p=tpg%2Facess2.git Modules/LVM - Fixed memory leak on cleanup --- 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); }