The documentation for mfxFrameAllocator::GetHDL states:
This function returns the OS-specific handle associated with a video frame. If the handle is a COM interface, the reference counter must increase. The SDK will release the interface afterward.
but all d3d samples simply return the handle without incrementing the ref count. I think the docs are wrong.
Bruno