]> git.donarmstrong.com Git - lilypond.git/commitdiff
document memory leak in relocate.cc
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 16 Jan 2007 22:49:16 +0000 (23:49 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 16 Jan 2007 22:49:16 +0000 (23:49 +0100)
lily/relocate.cc

index 05d98b72cafd070ddcf916cee0acb665640e763c..47502f7dbda9f054f9524c0587763cf5b26bc91b 100644 (file)
@@ -44,7 +44,12 @@ sane_putenv (char const *key, string value, bool overwrite)
        progress_indication (_f ("Setting %s to %s" , key, value.c_str ())
                             + "\n");
                             
-      return putenv (s);
+      int retval =  putenv (s);
+      /*
+       unfortunately, we can't portably free S here,
+       due to various bugs in glibc prior to 2.1.1
+       */ 
+      return retval;
     }
   
   return -1;