free allocations in clearenv
commitcc0dbd5f09337c187156fe8b697245e6ea9263d0
authorAlexander Monakov <amonakov@ispras.ru>
Sun, 3 Sep 2017 19:12:21 +0000 (3 22:12 +0300)
committerRich Felker <dalias@aerifal.cx>
Mon, 4 Sep 2017 19:55:21 +0000 (4 15:55 -0400)
treeacd199bba8ec96d1a5ad250ac7211d1d8346e578
parent8e932792c917d11545c2953b35159149f7411eca
free allocations in clearenv

This aligns clearenv with the Linux man page by setting 'environ'
rather than '*environ' to NULL, and stops it from leaking entries
allocated by the libc.
src/env/clearenv.c