mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 16:25:30 +02:00
remove an extra LocalFree() call for pOldDacls, it is not allocated on heap
This commit is contained in:
parent
bb982477a4
commit
b2a15f73ce
1 changed files with 4 additions and 3 deletions
|
|
@ -424,9 +424,10 @@ static int set_directory_permissions(const char *dir, const char *os_user)
|
|||
SetSecurityInfo(hDir,SE_FILE_OBJECT,DACL_SECURITY_INFORMATION,NULL, NULL,
|
||||
pNewDACL, NULL);
|
||||
}
|
||||
LocalFree(pNewDACL);
|
||||
LocalFree(pSD);
|
||||
LocalFree(pOldDACL);
|
||||
if(pSD != NULL)
|
||||
LocalFree((HLOCAL) pSD);
|
||||
if(pNewDACL != NULL)
|
||||
LocalFree((HLOCAL) pNewDACL);
|
||||
CloseHandle(hDir);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue