free critical sections with DeleteCriticalSection
This commit is contained in:
parent
572c69e3d0
commit
0694415a95
4 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue