JSON format: fix some memleaks

This commit is contained in:
李通洲
2023-09-08 20:03:26 +08:00
parent d97b16950c
commit 1cdc99f327
4 changed files with 9 additions and 3 deletions
+3
View File
@@ -162,4 +162,7 @@ void ffGenerateCPUJson(FFCPUOptions* options, yyjson_mut_doc* doc, yyjson_mut_va
else
yyjson_mut_obj_add_null(doc, obj, "temperature");
}
ffStrbufDestroy(&cpu.name);
ffStrbufDestroy(&cpu.vendor);
}