[ros-diffs] [fireball] 32521: - Fix leaking an entry in some cases during ObpFreeCapturedAttributes call. For more details: http://www.reactos.org/forum/viewtopic.php?t=5311.

fireball at svn.reactos.org fireball at svn.reactos.org
Thu Feb 28 12:37:15 CET 2008


Author: fireball
Date: Thu Feb 28 14:37:14 2008
New Revision: 32521

URL: http://svn.reactos.org/svn/reactos?rev=32521&view=rev
Log:
- Fix leaking an entry in some cases during ObpFreeCapturedAttributes call. For more details: http://www.reactos.org/forum/viewtopic.php?t=5311.

Modified:
    trunk/reactos/ntoskrnl/include/internal/ob_x.h

Modified: trunk/reactos/ntoskrnl/include/internal/ob_x.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/ob_x.h?rev=32521&r1=32520&r2=32521&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ob_x.h (original)
+++ trunk/reactos/ntoskrnl/include/internal/ob_x.h Thu Feb 28 14:37:14 2008
@@ -290,6 +290,12 @@
             List->L.FreeMisses++;
             List->L.Free(Buffer);
         }
+        else
+        {
+            /* The free was within the Depth */
+            InterlockedPushEntrySList(&List->L.ListHead,
+                                      (PSINGLE_LIST_ENTRY)Buffer);
+        }
     }
     else
     {




More information about the Ros-diffs mailing list