From 3de0480caedccc60ae9e45388bb467af34a1c22d Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 28 Feb 2008 11:37:14 +0000 Subject: [PATCH] - Fix leaking an entry in some cases during ObpFreeCapturedAttributes call. For more details: http://www.reactos.org/forum/viewtopic.php?t=5311. svn path=/trunk/; revision=32521 --- reactos/ntoskrnl/include/internal/ob_x.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/ntoskrnl/include/internal/ob_x.h b/reactos/ntoskrnl/include/internal/ob_x.h index bd566678390..40ac7d2c597 100644 --- a/reactos/ntoskrnl/include/internal/ob_x.h +++ b/reactos/ntoskrnl/include/internal/ob_x.h @@ -290,6 +290,12 @@ ObpFreeCapturedAttributes(IN PVOID Buffer, List->L.FreeMisses++; List->L.Free(Buffer); } + else + { + /* The free was within the Depth */ + InterlockedPushEntrySList(&List->L.ListHead, + (PSINGLE_LIST_ENTRY)Buffer); + } } else {