[/serial/serial/VirtualSerial2]: Potential memory leak?

Author: SkyArborCreated Apr 30, 2026Updated Sep 16, 2026

Which is the area where the sample lives?

/serial/

Describe the issue

New to Windows driver programming, please correct me if I'm wrong!

In serial/VirtualSerial2/ComPort/queue.c, function EvtIoWrite has some return branches that neither store request or complete the pending request _In_ WDFREQUEST Request.

Source: microsoft/Windows-driver-samples