diff --git a/mozilla/xpcom/io/nsLocalFileWin.cpp b/mozilla/xpcom/io/nsLocalFileWin.cpp index 74b88c28d9f..26d0c20a965 100644 --- a/mozilla/xpcom/io/nsLocalFileWin.cpp +++ b/mozilla/xpcom/io/nsLocalFileWin.cpp @@ -633,6 +633,7 @@ nsLocalFile::InitWithPath(const char *filePath) ( (filePath[0] == '\\') && (filePath[1] == '\\') ) ) // netwerk path { // This is a native path + if (nativeFilePath) nsCRT::free(nativeFilePath); nativeFilePath = (char*) nsMemory::Clone( filePath, strlen(filePath)+1 ); }