]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/relocate.cc
document memory leak in relocate.cc
[lilypond.git] / 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;