Memory leak getting orientation and position of HMD

The project I’m working on only needs the tracking information from the HMD and two controllers, not the display functionality of the HMD. To bypass the HMD manually modifying the projection matrix, I am enabling the HMD, grabbing the position and orientation, then disabling the HMD.

UHeadMountedDisplayFunctionLibrary::EnableHMD(true);
UHeadMountedDisplayFunctionLibrary::GetOrientationAndPosition(_hmdRotation, _hmdPosition);
UHeadMountedDisplayFunctionLibrary::EnableHMD(false);

Definitely a hack, but I don’t have the time to track down where in the engine the HMD is modifying the projection matrix. The memory leak I’m experiencing is approximately 6MB every time I run the code above. I’ve also tried forcing garbage collection and only running the code above 5 times per second with no success.