Merge pull request #292 from oschwald/greg/fix-leak

Fix leak of normalized value in early return
This commit is contained in:
Al Barrentine
2017-12-26 10:44:27 -05:00
committed by GitHub

View File

@@ -1770,6 +1770,10 @@ libpostal_address_parser_response_t *address_parser_parse(char *address, char *l
token_array_destroy(tokens);
tokenized_string_destroy(tokenized_str);
if (is_normalized) {
free(normalized);
}
return response;
}
}