Clear structs before alloc