当前位置:网站首页>json_object_put: Assertion `jso->_ref_count > 0‘ failed.Aborted (core dumped)
json_object_put: Assertion `jso->_ref_count > 0‘ failed.Aborted (core dumped)
2022-07-26 10:25:00 【青云 --小凡】
分析:使用json-c库的函数json_object_put(*obj)时导致,原因是obj对象被释放之后,又再次使用导致。
fileInformation_t *file_info_struct = malloc(sizeof(fileInformation_t));
struct json_object* file_info_array_json = json_object_array_get_idx(every_one_ecu, elm);
struct json_object* final_json;
json_object_object_get_ex(file_info_array_json, "fileLevelName", &final_json);
if(json_object_get_type(final_json) == json_type_string)
{
file_info_struct->fileLevelName = json_object_get_string(final_json);
printf("%s\n", file_info_struct->fileLevelName);
}
json_object_put(final_json);边栏推荐
- 单元测试,到底什么是单元测试,为什么单测这么难写
- Using undertow, Nacos offline logout delay after service stop
- 【Halcon视觉】数组
- 简单化构造函数的继承方法(一)- 组合继承
- [gossip] error loading psychopg2 module: no module named psychopg2
- 【Halcon视觉】阈值分割
- Kaptcha image verification code integration
- js翻页、kkpager.js翻页
- Time series anomaly detection
- 【Halcon视觉】形态学腐蚀
猜你喜欢

我们的Web3创业项目,黄了

数通基础-TCPIP参考模型

Distributed network communication framework: how to publish local services into RPC services
![[Halcon vision] affine transformation](/img/f1/32284c71e78e6eea390fdb6058ba0f.png)
[Halcon vision] affine transformation

30 minutes to thoroughly understand the synchronized lock upgrade process

Data communication foundation STP principle

Cause: couldn‘t make a guess for 解决方法
![[Halcon vision] image filtering](/img/7a/b95f8977f02fab644ef9fb205424e7.png)
[Halcon vision] image filtering

Introduction to latex, EPS picture bounding box

AirTest
随机推荐
【Halcon视觉】算子的结构
About the declaration and definition of template functions [easy to understand]
Wechat official account release reminder (wechat official account template message interface)
Uniapp "no mobile phone or simulator detected, please try again later" and uniapp custom components and communication
modelsim 安装教程(应用未安装)
[Halcon vision] image filtering
我们的Web3创业项目,黄了
微信公众号发布提醒(微信公众号模板消息接口)
[C language] named type and anonymous type
Uniapp common error [wxml file compilation error]./pages/home/home Wxml and using MySQL front provided by phpstudy to establish an independent MySQL database and a detailed tutorial for independent da
详细解析js中的混合方式构造对象(构造加属性,原型加方法)
Cause: could't make a guess for solution
【Halcon视觉】仿射变换
Closure of go (cumulative sum)
Data communication foundation STP principle
All codes of Tetris
Reproduce the snake game in C language (I) build pages and construct snakes
Under win10 64 bit, matlab fails to configure notebook
Listening freely, the next stop of online text traffic competition?
数通基础-二层交换原理