Windows: Freeing SeQueryInformationToken allocations

Memory allocated by SeQueryInformationToken() must be freed with
ExFreePool() and not AFSExFreePool().

Change-Id: Iece2c37d5dc524204cbf3d8d6869148e1a0ce88e
Reviewed-on: http://gerrit.openafs.org/7806
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
Jeffrey Altman 2012-07-21 11:57:40 -04:00
parent 3ec1bdf9c7
commit 8a11435eed
2 changed files with 2 additions and 2 deletions

View File

@ -1787,7 +1787,7 @@ try_exit:
if( pTokenInfo != NULL) if( pTokenInfo != NULL)
{ {
AFSExFreePool( pTokenInfo); ExFreePool( pTokenInfo); // Allocated by SeQueryInformationToken
} }
} }

View File

@ -7614,7 +7614,7 @@ try_exit:
if( pTokenInfo != NULL) if( pTokenInfo != NULL)
{ {
AFSExFreePool( pTokenInfo); ExFreePool( pTokenInfo); // Allocated by SeQueryInformationToken
} }
} }