Windows: Free work item memory with tag value
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 17 Oct 2011 13:29:37 +0000 (09:29 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 25 Oct 2011 17:49:37 +0000 (10:49 -0700)
For consistency throughout the source module, free all work
item memory allocations with ExFreePoolWithTag.

Change-Id: I4e9b275bb8b92a81884d36ce4c8ed754d281bbf8
Reviewed-on: http://gerrit.openafs.org/5627
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>

src/WINNT/afsrdr/kernel/lib/AFSWorker.cpp

index 426626a..ae92834 100644 (file)
@@ -2075,7 +2075,7 @@ try_exit:
 
                 InterlockedDecrement( &Fcb->OpenReferenceCount);
 
-                ExFreePool( pWorkItem);
+                ExFreePoolWithTag( pWorkItem, AFS_WORK_ITEM_TAG);
             }
 
             AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING,
@@ -2159,7 +2159,7 @@ try_exit:
             if( pWorkItem != NULL)
             {
 
-                ExFreePool( pWorkItem);
+                ExFreePoolWithTag( pWorkItem, AFS_WORK_ITEM_TAG);
             }
 
             AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING,
@@ -2243,7 +2243,7 @@ try_exit:
             if( pWorkItem != NULL)
             {
 
-                ExFreePool( pWorkItem);
+                ExFreePoolWithTag( pWorkItem, AFS_WORK_ITEM_TAG);
             }
 
             AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING,
@@ -2312,7 +2312,7 @@ try_exit:
             if( pWorkItem != NULL)
             {
 
-                ExFreePool( pWorkItem);
+                ExFreePoolWithTag( pWorkItem, AFS_WORK_ITEM_TAG);
             }
 
             AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING,
@@ -2421,7 +2421,7 @@ try_exit:
             if( pWorkItem != NULL)
             {
 
-                ExFreePool( pWorkItem);
+                ExFreePoolWithTag( pWorkItem, AFS_WORK_ITEM_TAG);
             }
         }
     }