From e63c7d3f928dadd6f4c6521b6fe69fa329d16b85 Mon Sep 17 00:00:00 2001 From: Doug Turner Date: Wed, 31 Aug 2011 19:39:49 -0700 Subject: [PATCH] Bug 678997 - putenv memory leak in widget/src/android/AndroidBridge.cpp. r=azakai --- widget/src/android/AndroidBridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/android/AndroidBridge.cpp b/widget/src/android/AndroidBridge.cpp index af13e30d97f..e4dad3416a4 100644 --- a/widget/src/android/AndroidBridge.cpp +++ b/widget/src/android/AndroidBridge.cpp @@ -84,7 +84,7 @@ AndroidBridge::ConstructBridge(JNIEnv *jEnv, * to call dlclose() while we're already inside dlclose(). * Conveniently, NSS has an env var that can prevent it from unloading. */ - putenv(strdup("NSS_DISABLE_UNLOAD=1")); + putenv("NSS_DISABLE_UNLOAD=1"); sBridge = new AndroidBridge(); if (!sBridge->Init(jEnv, jGeckoAppShellClass)) {