mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
drive: Fix double free in client drive channel
This commit is contained in:
committed by
akallabeth
parent
4c862892b4
commit
c88c777482
@@ -247,7 +247,7 @@ static UINT drive_process_irp_close(DRIVE_DEVICE* drive, IRP* irp)
|
||||
irp->IoStatus = STATUS_UNSUCCESSFUL;
|
||||
else
|
||||
{
|
||||
ListDictionary_Remove(drive->files, key);
|
||||
ListDictionary_Take(drive->files, key);
|
||||
|
||||
if (drive_file_free(file))
|
||||
irp->IoStatus = STATUS_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user