mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
nsStandardURL::BuildNormalizedSpec needs to use nsMemory::Allocate instead of malloc.
bug 132198 r=jag sr=darin a=dbaron
This commit is contained in:
parent
27c318e746
commit
42f615b233
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user