mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
issue:#IAJ1T8 修复基础用例doublefree问题
Signed-off-by: xuezhou_yan <yangang20@huawei.com>
This commit is contained in:
@@ -522,6 +522,8 @@ int32_t DecodePCID(char *inputFile, char *outDirPath)
|
||||
return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_ROOT_OUT, ret);
|
||||
}
|
||||
|
||||
freePcidJsonInfo.sysCapObj = NULL; // avoid being released repeatedly.
|
||||
|
||||
freePcidJsonInfo.strJson = cJSON_Print(freePcidJsonInfo.jsonRootObj);
|
||||
|
||||
const char outputFileName[] = "pcid.json";
|
||||
|
||||
Reference in New Issue
Block a user