mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-24 10:24:01 +08:00
fix memory leak at drive_register_drive_path() and drive_free()
This commit is contained in:
parent
7e5b766f78
commit
a2ecf403b2
@ -757,6 +757,7 @@ static UINT drive_free(DEVICE* device)
|
||||
ListDictionary_Free(drive->files);
|
||||
MessageQueue_Free(drive->IrpQueue);
|
||||
Stream_Free(drive->device.data, TRUE);
|
||||
free(drive->path);
|
||||
free(drive);
|
||||
return error;
|
||||
}
|
||||
@ -867,6 +868,7 @@ UINT drive_register_drive_path(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints,
|
||||
out_error:
|
||||
MessageQueue_Free(drive->IrpQueue);
|
||||
ListDictionary_Free(drive->files);
|
||||
free(drive->path);
|
||||
free(drive);
|
||||
return error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user