Malloc size of structs instead of pointers