Free 'hash_str_full' only if it was allocated