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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user