Modules/LVM - Fixed memory leak on cleanup
authorJohn Hodge <[email protected]>
Sat, 27 Jul 2013 15:50:28 +0000 (23:50 +0800)
committerJohn Hodge <[email protected]>
Sat, 27 Jul 2013 15:50:28 +0000 (23:50 +0800)
KernelLand/Modules/Storage/LVM/main.c

index 7d747c1..501e8a7 100644 (file)
@@ -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);
        }

UCC git Repository :: git.ucc.asn.au