[api] Adding function to free expansions from expand_address

This commit is contained in:
Al
2016-02-15 20:13:12 -05:00
parent 98165e89ad
commit 37c09d1ed9
2 changed files with 9 additions and 1 deletions

View File

@@ -983,6 +983,13 @@ char **expand_address(char *input, normalize_options_t options, size_t *n) {
}
void expansion_array_destroy(char **expansions, size_t n) {
for (size_t i = 0; i < n; i++) {
free(expansions[i]);
}
free(expansions);
}
void address_parser_response_destroy(address_parser_response_t *self) {
if (self == NULL) return;