Bug 1915397 - fix resource leak in morkFactory::MakeHeap(). r=BenC
CID: 221061 Differential Revision: https://phabricator.services.mozilla.com/D223680 --HG-- extra : rebase_source : d6fb2804f2cbcad5dcbdb78c1ae7ef66cb271d06 extra : amend_source : 79fd056748066b76fe3676e50b9e0596c4dd83bd
This commit is contained in:
Родитель
475aacfa12
Коммит
9212327827
|
@ -46,6 +46,8 @@
|
|||
#ifndef _MORKWRITER_
|
||||
# include "morkWriter.h"
|
||||
#endif
|
||||
#include "prmem.h"
|
||||
|
||||
// 456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789
|
||||
|
||||
// ````` ````` ````` ````` `````
|
||||
|
@ -242,6 +244,7 @@ morkFactory::MakeHeap(nsIMdbEnv* mev, nsIMdbHeap** acqHeap) {
|
|||
}
|
||||
MORK_ASSERT(acqHeap);
|
||||
if (acqHeap) *acqHeap = outHeap;
|
||||
else PR_Free(outHeap);
|
||||
return outErr;
|
||||
}
|
||||
// } ----- end heap methods -----
|
||||
|
|
Загрузка…
Ссылка в новой задаче