Don't return pointer to out-of-scope structure on stack

Self-explanatory wtf