[NTOS:MM] Fix memory leak in MiMapViewOfDataSection
authorTuur Martens <tuurmartens4@gmail.com>
Tue, 17 May 2022 10:06:28 +0000 (12:06 +0200)
committerGeorge Bișoc <george.bisoc@reactos.org>
Wed, 18 May 2022 10:31:31 +0000 (12:31 +0200)
commit4f8bbd141e9ba1719daebf61d6ef940e51d427fa
tree515eec33b085797c0cdb3162ab95c2bd4c74fe1a
parent032c50f87c0ae48953299e10f6dba81f0ee75fb4
[NTOS:MM] Fix memory leak in MiMapViewOfDataSection

If inserting the allocated VAD fails, MiMapViewOfDataSection will make no attempt to free the allocated VAD. Nor will it call MiDereferenceControlArea(ControlArea); like other failure return paths. This commit fixes this behavior.
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
ntoskrnl/mm/ARM3/section.c