From e074ad48076f252764c4d17e21a1b17bc86a6dec Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 21 Feb 2012 18:18:10 -0800 Subject: [PATCH] Removed a leaking wcsdup --- env.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env.cpp b/env.cpp index d0a3f0445..e2e380a88 100644 --- a/env.cpp +++ b/env.cpp @@ -1271,7 +1271,7 @@ const wchar_t *env_get( const wchar_t *key ) } else { - return wcsdup(res->val.c_str()); + return res->val.c_str(); } }