阅读:833回复:0
SFilter好像有内存泄露!
在SfFsControlMountVolume函数里,前面IoCreateDevice了一个设备,用来绑定卷设备的,可是后面有操作没成功,它却没有IoDeleteDevice这个设备。
比如 completionContext = ExAllocatePoolWithTag( NonPagedPool, sizeof( FSCTRL_COMPLETION_CONTEXT ), SFLT_POOL_TAG ); if (completionContext == NULL) { //IoDeleteDevice(newDeviceObject); 是否漏了这一句? IoSkipCurrentIrpStackLocation( Irp ); status = IoCallDriver( devExt->AttachedToDeviceObject, Irp ); } else { …… } |
|