修复expand函数中无法malloc的bug:
原因是free的时候没有消除指针悬挂
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user