FREE(add_str) after usage and fix indenting