fix memory leak at drive_register_drive_path() and drive_free()
@@ -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;
}
