[PATCH] - ifupdown.c: remove memory leak

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 28 15:55:56 UTC 2019


Fixed in a bit different way.

On Sun, Apr 28, 2019 at 5:09 PM Chloe Kudryavtsev <toast at toastin.space> wrote:
>
> This has been in the tree for a pretty long time, and usually
> `if{up,down} -a` is a short-lived process.
>
> Generally speaking, no memory leak > memory leak (even in short lived
> processes).
>
> The extra integer (typically) takes up 4 bytes, but gets freed off the
> stack.
> Relative to leaking (even a bit) for every interface, it's likely
> preferable in memory constrained environments.
>
> I've done minimal testing (making sure `ifup -a` and `ifdown -a` run
> with the patch applied), but given the nature of the patch I cannot
> foresee it introducing a new bug.
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list