From: Han-Wen Nienhuys Date: Tue, 16 Jan 2007 22:49:16 +0000 (+0100) Subject: document memory leak in relocate.cc X-Git-Tag: release/2.10.12-1~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=72078d032f9bf963a62c86a8dda5cfcc05b0de5d;p=lilypond.git document memory leak in relocate.cc --- diff --git a/lily/relocate.cc b/lily/relocate.cc index ac4c31bac4..d7aed8133c 100644 --- a/lily/relocate.cc +++ b/lily/relocate.cc @@ -43,7 +43,12 @@ sane_putenv (char const *key, string value, bool overwrite) if (be_verbose_global) progress_indication (_f ("Setting %s to %s\n" , key, value.c_str ())); - 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;