free critical sections with DeleteCriticalSection

This commit is contained in:
Olga Kornievskaia 2011-11-02 12:05:33 -04:00
parent 572c69e3d0
commit 0694415a95
4 changed files with 6 additions and 2 deletions

View file

@ -72,6 +72,7 @@ static void file_device_free(
{
free(device->servers.arr);
free(device->stripes.arr);
DeleteCriticalSection(&device->device.lock);
free(device);
}
@ -156,7 +157,7 @@ void pnfs_file_device_list_free(
file_device_free(device_entry(entry));
LeaveCriticalSection(&devices->lock);
DeleteCriticalSection(&devices->lock);
free(devices);
}