Fixed memory leak in example.

This commit is contained in:
Krzysztof Gabis 2014-10-08 14:45:39 +02:00
parent 638190d6a0
commit e4ac46318e
2 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ void serialization_example(void) {
serialized_string = json_serialize_to_string(root_value);
puts(serialized_string);
json_free_serialized_string(serialized_string);
json_value_free(root_value);
}
```

View File

@ -367,4 +367,5 @@ void serialization_example(void) {
serialized_string = json_serialize_to_string(root_value);
puts(serialized_string);
json_free_serialized_string(serialized_string);
json_value_free(root_value);
}