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 <andreas@xxxxxxxxxx> This is not needed because we're about to exit so all memory will be going back to the OS. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html