On Thu, Dec 01, 2016 at 10:17:07PM +0100, Andreas Bofjall wrote:
> After dash had executed the exit trap handler, the trap was reset but
> the pointer was never freed. This leak can be demonstrated by running
> dash through valgrind and executing the following shell script:
>       foo() {
>           true
>       }
>       trap foo EXIT
> Fix by properly freeing the trap pointer in exitshell().
> Signed-off-by: Andreas Bofjall <andr...@gazonk.org>

This is not needed because we're about to exit so all memory will
be going back to the OS.

Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to