Bug 286185 nsFileSpecUnix::Rename leaks on failure

patch by ajschult@verizon.net r=darin sr=darin


git-svn-id: svn://10.0.0.236/trunk@170793 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2005-03-16 20:07:34 +00:00
parent 1ce9ffb4cd
commit b63e1ffa65

View File

@@ -406,6 +406,7 @@ nsresult nsFileSpec::Rename(const char* inNewName)
{
// Could not rename, set back to the original.
mPath = oldPath;
nsCRT::free(oldPath);
return NS_FILE_FAILURE;
}