From c40825cc0dd96bce7c9b69a7e0f261c390c0ceb2 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 16 Jan 2007 23:49:16 +0100 Subject: [PATCH] document memory leak in relocate.cc --- lily/relocate.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.2