Bug 1893313 - Leaks in nsMIMEHeaderParamImpl::DoParameterInternal() r=valentin,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D211607
This commit is contained in:
Sean 2024-05-27 13:08:49 +00:00
parent 141fb31205
commit 1b9454cdef

View File

@ -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;
}
}