[OpenWrt-Devel] Memory leak in ash with script using "local" incorrectly
Bastian Bittorf
bittorf at bluebottle.com
Thu Oct 29 10:41:43 EDT 2015
* Rafał Miłecki <zajec5 at gmail.com> [29.10.2015 07:29]:
> However I guess it would be nice thing to stop memory leak, even if
> script code is incorrect. Could someone take a look at this, please?
>
> My BusyBox/ash version:
> BusyBox v1.23.2 (2015-07-12 11:22:27 CEST) built-in shell (ash)
i just tested v1.24.1 on OpenWrt[1] and there is *no* leak.
i run this script up to i=100.000:
i=0;while :; do i=$(( i + 1 )); local foo=$(:); case "$i" in *'00')
free; echo $i;;esac; done
(it was leaking to oom on OpenWrt with 1.23.2 + dist-patches)
bye, bastian
[1] https://patchwork.ozlabs.org/patch/536171/
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list