Open Bug 1598609 Opened 2 months ago Updated 2 months ago

Memory leak in RequestResolver::GetStorageEstimate after calling QueryInterface


(Core :: Storage: Quota Manager, defect, P2)





(Reporter: sg, Unassigned)


(Blocks 1 open bug)


(Keywords: coverity)

In, iid is leaked. The code seems to assume that iid is never allocated when QueryInterface returns a failure, but that is not true. When returning from nsDiscriminatedUnion::ConvertToInterface at with an error, it will have already been allocated.

This might also be a bug to be fixed in nsDiscriminatedUnion::ConvertToInterface.

OS: Unspecified → All
Priority: -- → P2
Hardware: Unspecified → All
Version: unspecified → Trunk

The same bug exists in this other call site of GetAsInterface.

You need to log in before you can comment on or make changes to this bug.