Revert "fix MSVC-ARM internal compiler error by wrapping malloc"

This reverts commit 7feb65ddf8cba37d2efdd4d81d4e88e47505b225.