nsStandardURL::BuildNormalizedSpec needs to use nsMemory::Allocate instead of malloc.

bug 132198 r=jag sr=darin a=dbaron
This commit is contained in:
badami%netscape.com 2002-03-27 02:59:25 +00:00
parent 27c318e746
commit 42f615b233

View File

@ -521,7 +521,7 @@ nsStandardURL::BuildNormalizedSpec(const char *spec)
//
// generate the normalized URL string
//
char *buf = (char *) malloc(approxLen + 32);
char *buf = (char *) nsMemory::Alloc(approxLen + 32);
if (!buf)
return NS_ERROR_OUT_OF_MEMORY;
PRUint32 i = 0;