r22988: fixed 2 bugs in our unsetenv() replacement code
authorAndrew Tridgell <tridge@samba.org>
Fri, 18 May 2007 06:53:57 +0000 (06:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:36 +0000 (14:52 -0500)
commitec6900171d066e927f004b621fb39cc7b8dcfd90
tree300804d57240b4332a1980f476ea8c86ff66ad12
parent3aa9d70723d4377d29e33281b640499193b06c69
r22988: fixed 2 bugs in our unsetenv() replacement code

 1) you must not free the memory, as it is possible the memory did not
 come from malloc (try it under valgrind to test)

 2) the old code didn't cope with duplicate environment variables

I hope this will fix some of the build farm errors on irix, and maybe solaris
source/lib/replace/replace.c