Skip to content

Commit 38c6c26

Browse files
committed
[fix] freeing normalized string in address_parser_parse
1 parent 904fde6 commit 38c6c26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/address_parser.c

+4
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,10 @@ address_parser_response_t *address_parser_parse(char *address, char *language, c
942942
tokenized_string_destroy(tokenized_str);
943943
cstring_array_destroy(token_labels);
944944

945+
if (is_normalized) {
946+
free(normalized);
947+
}
948+
945949
return response;
946950
}
947951

0 commit comments

Comments
 (0)