mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 13:40:16 +00:00
Delete cJSON object after use
This commit is contained in:
parent
9f5af2b5a0
commit
62d632da7b
@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user