提交 821d0ac2 编写于 作者: P prife

fix memory leak in sd_erase in bsp/simulator

上级 d7f8f375
......@@ -203,6 +203,7 @@ int sd_erase(void)
{
rt_sdcard_write(device, index, buffer, SECTOR_SIZE);
}
rt_free(buffer);
return 0;
}
FINSH_FUNCTION_EXPORT(sd_erase, erase all block in SPI flash);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册