alibaba / AliOS-Things

面向IoT领域的、高可伸缩的物联网操作系统,可去官网了解更多信息https://www.aliyun.com/product/aliosthings
Apache License 2.0
4.58k stars 1.14k forks source link

[HUST CSE] Fix: Add free() operations after malloc() #1983

Closed Stwsyburg closed 12 months ago

Stwsyburg commented 1 year ago

为什么提交这份PR: hardware/chip/rtl872xd/hal/wifi_port.c文件中,572行函数haas200_wifi_start_specified_scan中,malloc没有释放内存可能发生内存溢出泄漏

你的解决方案是什么: 为每一处malloc添加了free操作防止内存溢出

在什么测试环境下测试通过 : all