Fixed not freeing allocated memory