From d6181893ecfef57aa66b1df372a3fee3bf474a31 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Wed, 17 Feb 1999 00:35:25 +0000 Subject: [PATCH] fix memory crunch freeing memory I don't own --- mailnews/db/msgdb/src/nsMailDatabase.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mailnews/db/msgdb/src/nsMailDatabase.cpp b/mailnews/db/msgdb/src/nsMailDatabase.cpp index 5de14fff95a..7643caf1f04 100644 --- a/mailnews/db/msgdb/src/nsMailDatabase.cpp +++ b/mailnews/db/msgdb/src/nsMailDatabase.cpp @@ -47,7 +47,7 @@ nsMailDatabase::~nsMailDatabase() // OK, dbName is probably folder name, since I can't figure out how nsFilePath interacts // with xpFileTypes and its related routines. - const char *folderName = dbName; + char *folderName = dbName; *pMessageDB = NULL; @@ -77,7 +77,6 @@ nsMailDatabase::~nsMailDatabase() statResult = stat ((const char *) dbName, &st); nsresult err = mailDB->OpenMDB(dbName, create); - PR_Free(dbName); if (NS_SUCCEEDED(err)) {