mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Fix small, localized leak of HTTP atoms. Well tested on MacOS and under Purify with no ill effects. r=gagan
This commit is contained in:
parent
192e307283
commit
53f52035ac
@ -368,7 +368,7 @@ nsresult nsHTTPResponse::ParseHeader(nsCString& aHeaderString)
|
||||
aHeaderString.Cut(0, colonOffset+1);
|
||||
aHeaderString.Trim(" ");
|
||||
|
||||
headerAtom = NS_NewAtom(headerKey.GetBuffer());
|
||||
headerAtom = getter_AddRefs(NS_NewAtom(headerKey.GetBuffer()));
|
||||
if (headerAtom) {
|
||||
rv = ProcessHeader(headerAtom, aHeaderString);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user