Fixed 'free()' Memory Issue