当前位置:网站首页>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:36:00 【Qingyun -- Xiaofan】
analysis : Use json-c Library functions json_object_put(*obj) Caused by , as a result of obj After the object is released , Caused by reuse .
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);
边栏推荐
- Modelsim installation tutorial (application not installed)
- .NET5WTM(ASP.NET Core) PGSql开箱操作
- Using native JS to realize custom scroll bar (click to reach, drag to reach)
- Centos8 (liunx) deploying WTM (asp.net 5) using PgSQL
- The software cannot be opened
- json-c库的简单使用——将json文件转换为struct.
- [leetcode每日一题2021/8/31]1109. 航班预订统计【中等】差分数组
- 异常的概念与处理
- [leetcode每日一题2021/5/8]1723. 完成所有工作的最短时间
- [Halcon vision] programming logic
猜你喜欢
js 获得当前时间,时间与时间戳的转换
记给esp8266烧录刷固件
[leetcode每日一题2021/2/13]448. 找到所有数组中消失的数字
单元测试,到底什么是单元测试,为什么单测这么难写
uniapp使用简单方法signalR(仅用于web调试,无法打包app)
Okaleido生态核心权益OKA,尽在聚变Mining模式
议程速递 | 7月27日分论坛议程一览
[Halcon vision] image gray change
centos8(liunx)部署WTM(ASP.NET 5)使用pgsql
Agenda express | list of sub forum agenda on July 27
随机推荐
SAP ABAP Netweaver 容器化的一些前沿性研究工作分享
js翻页、kkpager.js翻页
2022pta usual training questions (1-10 string processing questions)
我们的Web3创业项目,黄了
Analyze the hybrid construction objects in JS in detail (construction plus attributes, prototype plus methods)
Dry goods likeshop takeout order system is open source, 100% open source, no encryption
C语言计算日期间隔天数
[leetcode每日一题2021/4/29]403. 青蛙过河
【机器学习小记】【搭建循环神经网络及其应用】deeplearning.ai course5 1st week programming(keras)
事务的传播性propagation
畅听,网文流量竞争的下一站?
Structure of [Halcon vision] operator
头歌 Phoenix 入门(第1关:Phoenix 安装、第2关:Phoenix 基础语法)
原生JS-获取transform值 x y z及rotate旋转角度
videojs转canvas暂停、播放、切换视频
一些你不知道的 web API
js,e.pageX、pageY模态框拖动
L2-005 set similarity (intersection of vector and set)
[leetcode每日一题2021/8/31]1109. 航班预订统计【中等】差分数组
结构体操作报错:Segmentation fault (core dumped)