remove an extra LocalFree() call for pOldDacls, it is not allocated on heap
This commit is contained in:
parent
bb982477a4
commit
b2a15f73ce
@ -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,
|
SetSecurityInfo(hDir,SE_FILE_OBJECT,DACL_SECURITY_INFORMATION,NULL, NULL,
|
||||||
pNewDACL, NULL);
|
pNewDACL, NULL);
|
||||||
}
|
}
|
||||||
LocalFree(pNewDACL);
|
if(pSD != NULL)
|
||||||
LocalFree(pSD);
|
LocalFree((HLOCAL) pSD);
|
||||||
LocalFree(pOldDACL);
|
if(pNewDACL != NULL)
|
||||||
|
LocalFree((HLOCAL) pNewDACL);
|
||||||
CloseHandle(hDir);
|
CloseHandle(hDir);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user