They get allocated when calling initialize() on a primitive array. And they get free'd when the array is fully initialized. However, when that never happens, they get leaked. Fix that by calling the destructor of global variables.
No test attached here, since the problem only exists when asan is used. However, the next patch I upload will test that InitMaps work.
I believe Ptr is not longer valid b/c of free(IM) b/c what Ptr points to has not been free'ed
I am looking at the wording now but I am curious what @aaron.ballman thinks.