Fixed freeing wrong memory when the collation key creation fails, bug 119917, r=bhuvan, sr=sspitzer, a=dbaron.

git-svn-id: svn://10.0.0.236/trunk@112357 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com
2002-01-16 23:43:27 +00:00
parent 1c0bf9e4d5
commit 4b90db978f

View File

@@ -758,7 +758,7 @@ nsresult nsAbView::CreateCollationKey(const PRUnichar *aSource, PRUint8 **aKey,
rv = mCollationKeyGenerator->CreateRawSortKey(kCollationCaseInSensitive, sourceString, *aKey, aKeyLen);
if (NS_FAILED(rv))
{
nsMemory::Free(aKey);
nsMemory::Free(*aKey);
return rv;
}
return NS_OK;