fix for memory leak in utils_match.c