From 5e1df9483489c2ac6dbd9429ef4f64e4a76f4897 Mon Sep 17 00:00:00 2001 From: Download-Fritz Date: Wed, 27 Mar 2019 20:06:49 +0100 Subject: [PATCH] OcAppleKernelLib: Fix LinkedVtables memory leak. --- Library/OcAppleKernelLib/PrelinkedKext.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/OcAppleKernelLib/PrelinkedKext.c b/Library/OcAppleKernelLib/PrelinkedKext.c index c9f77d8b..cf18a5e9 100644 --- a/Library/OcAppleKernelLib/PrelinkedKext.c +++ b/Library/OcAppleKernelLib/PrelinkedKext.c @@ -495,6 +495,11 @@ InternalFreePrelinkedKext ( Kext->LinkedSymbolTable = NULL; } + if (Kext->LinkedVtables != NULL) { + FreePool (Kext->LinkedVtables); + Kext->LinkedVtables = NULL; + } + FreePool (Kext); }