json_value_free and json_object_free #192
Answered
by
kgabis
OpenSourceEverything
asked this question in
Q&A
-
Hello, It is not clear to me whether a call to json_value_free and json_object_free are both needed when initializing your root value/object pair per example code in the readme.md. In the example below, is the jason_value_free sufficient to free all memory in addition to the json_free_serialized_string call?
|
Beta Was this translation helpful? Give feedback.
Answered by
kgabis
Nov 13, 2022
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kgabis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
json_object_free
is not part of the API exposed to users. And yes, in the example above,json_value_free
andjson_free_serialized_string
for the string are sufficient.