当前位置:网站首页>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);边栏推荐
- Prevent XSS attacks
- 微信公众号发布提醒(微信公众号模板消息接口)
- videojs转canvas暂停、播放、切换视频
- Replay the snake game with C language (II) end
- Learning about tensorflow (I)
- 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
- 【C#语言】具名类型和匿名类型
- Jpg to EPS
- Review of database -- 1. Overview
- The difference between equals and = =
猜你喜欢

INSTALL_ FAILED_ SHARED_ USER_ Incompatible error resolution

【Halcon视觉】图像的傅里叶变换

Data communication foundation STP principle

Okaleido ecological core equity Oka, all in fusion mining mode

Learning about tensor (III)

Introduction to latex, EPS picture bounding box
![[Halcon vision] array](/img/29/905d93795a24538fded18d2d377e52.png)
[Halcon vision] array

AirTest
![[Halcon vision] image filtering](/img/4b/e73a8d589b49276d96621f0ef02449.png)
[Halcon vision] image filtering
![[Halcon vision] image filtering](/img/7a/b95f8977f02fab644ef9fb205424e7.png)
[Halcon vision] image filtering
随机推荐
js 获得当前时间,时间与时间戳的转换
Redis realizes the correct posture of token bucket
Android greendao数据库的使用
[Halcon vision] polar coordinate transformation
Data communication foundation telnet remote management equipment
上传图片获取宽高
Draco developed by Google and Pixar supports USD format to accelerate 3D object transmission & lt; Forward & gt;
Learning about tensorflow (I)
Replay the snake game with C language (II) end
数通基础-二层交换原理
输入整数后输入整行字符串的解决方法
Dynamically determine file types through links
Cause: couldn‘t make a guess for 解决方法
面试第二家公司的面试题及答案(二)
数通基础-Telnet远程管理设备
Common errors when starting projects in uniapp ---appid
[Halcon vision] software programming ideas
【Halcon视觉】图像的傅里叶变换
【C#语言】LINQ概述
Review of database -- 3. SQL language