msvcrt: Free previous environment variable when clearing.
Shifting the rest of the variables by one towards indices of lesser value
overwrites the variable being cleared and effectively leaks it.
Signed-off-by: David Kahurani <k.kahurani@gmail.com>
Showing
Please
register
or
sign in
to comment