< prev index next > src/hotspot/os/windows/perfMemory_windows.cpp
Print this page
/*
! * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
/*
! * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
// free the contained security descriptor and the ACL
free_security_desc(lpSA->lpSecurityDescriptor);
lpSA->lpSecurityDescriptor = NULL;
// free the security attributes structure
! FREE_C_HEAP_ARRAY(char, lpSA);
}
}
// get the user SID for the process indicated by the process handle
//
// free the contained security descriptor and the ACL
free_security_desc(lpSA->lpSecurityDescriptor);
lpSA->lpSecurityDescriptor = NULL;
// free the security attributes structure
! FREE_C_HEAP_OBJ(lpSA);
}
}
// get the user SID for the process indicated by the process handle
//
}
// allocate and initialize the security attributes structure and
// return it to the caller.
//
! LPSECURITY_ATTRIBUTES lpSA = (LPSECURITY_ATTRIBUTES)
! NEW_C_HEAP_ARRAY(char, sizeof(SECURITY_ATTRIBUTES), mtInternal);
lpSA->nLength = sizeof(SECURITY_ATTRIBUTES);
lpSA->lpSecurityDescriptor = pSD;
lpSA->bInheritHandle = FALSE;
return(lpSA);
}
// allocate and initialize the security attributes structure and
// return it to the caller.
//
! LPSECURITY_ATTRIBUTES lpSA =
! NEW_C_HEAP_OBJ(SECURITY_ATTRIBUTES, mtInternal);
lpSA->nLength = sizeof(SECURITY_ATTRIBUTES);
lpSA->lpSecurityDescriptor = pSD;
lpSA->bInheritHandle = FALSE;
return(lpSA);
< prev index next >