Backport from upstream:
542fb0eadd
A double free vulnerability was discovered in cJSON_Delete function through
fuzzing. Fix it by set pointers to NULL immediately after they are deallocated.
Links: https://github.com/DaveGamble/cJSON/issues/833
Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>