fixup #2591 - missing attributes for GC.malloc call
Merge pull request #2688 from MartinNowak/fixup2591

fixup #2591 - missing attributes for GC.malloc call