64231dad67
This fixes the corruption incidentally resolved by assigning to an unused variable by properly allocating memory for structs before assigning to them. This will resolve the segfault on return issue, as the saved return address is no longer clobbered.