[tbb-commits] [tor-browser/tor-browser-24.5.0esr-1] fixup! fix #9308 and #11433: don't leak user install path of TBB

mikeperry at torproject.org mikeperry at torproject.org
Fri Apr 25 19:27:26 UTC 2014


commit e3a8d5fdd5dad12a0bcb6d2290553914457dd91e
Author: Mike Perry <mikeperry-git at torproject.org>
Date:   Fri Apr 25 21:23:44 2014 +0200

    fixup! fix #9308 and #11433: don't leak user install path of TBB
    
    Turns out case matters in C++. Who knew?
---
 js/xpconnect/src/XPCException.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/xpconnect/src/XPCException.cpp b/js/xpconnect/src/XPCException.cpp
index bb4064a..7bd71a4 100644
--- a/js/xpconnect/src/XPCException.cpp
+++ b/js/xpconnect/src/XPCException.cpp
@@ -298,7 +298,7 @@ nsXPCException::Initialize(const char *aMessage, nsresult aResult, const char *a
         nsAutoCString resourceFilename;
         mozilla::Omnijar::ConvertToResourceFilename(nsCString(rawFilename), resourceFilename);
         mFilename = (char *) nsMemory::Clone(resourceFilename.get(), resourceFilename.Length()+1);
-        nsMemory::Free(rawFileName); // allocated by GetFilename
+        nsMemory::Free(rawFilename); // allocated by GetFilename
         if (NS_FAILED(rc = aLocation->GetLineNumber(&mLineNumber)))
             return rc;
     } else {



More information about the tbb-commits mailing list