修复expand函数中无法malloc的bug:

原因是free的时候没有消除指针悬挂
This commit is contained in:
Qiea
2024-11-11 17:34:50 +08:00
parent f940758d87
commit a6adf831b3
3 changed files with 38 additions and 14 deletions

View File

@@ -283,7 +283,7 @@ u8 model_switchdata(char* data_name){
DEBUG_PRINTF("Data数据集[%s]切换失败!!\r\n",data_name);
return 0;
}
else printf("Data数据集[%s]切换成功!\r\n",data_name);
else DEBUG_PRINTF("Data数据集[%s]切换成功!\r\n",data_name);
DEBUG_PRINTF("data_name的长度为%d\r\n_path的长度为%d\r\n_path为%s\r\n",_len,sizeof(_path),_path);
return 1;
}