mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
fix leaks
This commit is contained in:
parent
8b67b30a63
commit
96cb99cd23
@ -455,7 +455,7 @@ void nsMsgDatabase::UnixToNative(char*& ioPath)
|
||||
else
|
||||
*dst++;
|
||||
}
|
||||
PR_Free(ioPath);
|
||||
nsCRT::free(ioPath);
|
||||
ioPath = result;
|
||||
}
|
||||
}
|
||||
@ -597,7 +597,7 @@ NS_IMETHODIMP nsMsgDatabase::OpenMDB(const char *dbName, PRBool create)
|
||||
if (ret == NS_OK)
|
||||
ret = InitNewDB();
|
||||
}
|
||||
PR_FREEIF(nativeFileName);
|
||||
nsCRT::free(nativeFileName);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user