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.11.12-1~17 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c40825cc0dd96bce7c9b69a7e0f261c390c0ceb2;p=lilypond.git document memory leak in relocate.cc --- diff --git a/lily/relocate.cc b/lily/relocate.cc index 05d98b72ca..47502f7dbd 100644 --- a/lily/relocate.cc +++ b/lily/relocate.cc @@ -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;