diff -r 838b096c1d08 -r 21884374edbb src/json.c --- a/src/json.c Sun Dec 15 11:11:16 2024 +0100 +++ b/src/json.c Sun Dec 15 12:19:21 2024 +0100 @@ -633,8 +633,7 @@ } void cxJsonValueFree(CxJsonValue *value) { - if (value == NULL || value == &cx_json_value_nothing) return; - + if (value == NULL || value->type == CX_JSON_NOTHING) return; switch (value->type) { case CX_JSON_OBJECT: { CxJsonObject obj = value->value.object;