mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1893313 - Leaks in nsMIMEHeaderParamImpl::DoParameterInternal() r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D211607
This commit is contained in:
parent
141fb31205
commit
1b9454cdef
@ -719,6 +719,7 @@ nsresult nsMIMEHeaderParamImpl::DoParameterInternal(
|
||||
// check that the 2231/5987 result decodes properly given the
|
||||
// specified character set
|
||||
if (!IsValidOctetSequenceForCharset(charsetB, caseBResult)) {
|
||||
free(caseBResult);
|
||||
caseBResult = nullptr;
|
||||
}
|
||||
}
|
||||
@ -727,6 +728,7 @@ nsresult nsMIMEHeaderParamImpl::DoParameterInternal(
|
||||
// check that the 2231/5987 result decodes properly given the
|
||||
// specified character set
|
||||
if (!IsValidOctetSequenceForCharset(charsetCD, caseCDResult)) {
|
||||
free(caseCDResult);
|
||||
caseCDResult = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user