]> git.ipfire.org Git - thirdparty/samba.git/commit
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)
committerAndrew Tridgell <tridge@samba.org>
Fri, 18 May 2007 06:53:57 +0000 (06:53 +0000)
commit3ef249b75db2fc00fb7b8f755584e2d45c767f03
treed71523c2ec25b87603d0f9911c359d5b09008a73
parent4723d7905f1d6bf1747190d3e859129b7a1cf387
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