Skip to content

Commit

Permalink
[fix] free json-encoded string in parser client output
Browse files Browse the repository at this point in the history
  • Loading branch information
albarrentine committed Feb 9, 2017
1 parent 38c6c26 commit ea16827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/address_parser_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ int main(int argc, char **argv) {
for (int i = 0; i < parsed->num_components; i++) {
char *json_string = json_encode_string(parsed->components[i]);
printf(" \"%s\": %s%s\n", parsed->labels[i], json_string, i < parsed->num_components - 1 ? "," : "");
free(json_string);
}
printf("}\n");
printf("\n");
Expand Down

0 comments on commit ea16827

Please sign in to comment.