Maybe memory leaks

Thanks for report @monaka
Type is more simple and reduce warning

warning: dereferencing pointer ‘st.20’ does break strict-aliasing rules