Delete cJSON object after use

This commit is contained in:
Mahbub Alam 2023-10-14 20:08:55 -04:00
parent 9f5af2b5a0
commit 62d632da7b

View File

@ -117,6 +117,7 @@ void add_module_cjson(VM* vm){
cJSON* cjson = convert_python_object_to_cjson(args[0], vm);
char* str = cJSON_Print(cjson);
cJSON_Delete(cjson);
return VAR(Str(str));
});
}