mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Added comments to make it clearer when we're assigning a pointer that it
must not be freed afterwards. Jeremy.
This commit is contained in:
parent
9e4eba0ae5
commit
4015e39d36
@ -1000,8 +1000,16 @@ Deny entry after Allow entry. Failing to set on file %s.\n", fsp->fsp_name ));
|
||||
return False;
|
||||
}
|
||||
|
||||
/*
|
||||
* We must not free current_ace here as its
|
||||
* pointer is now owned by the dir_ace list.
|
||||
*/
|
||||
current_ace = dup_ace;
|
||||
} else {
|
||||
/*
|
||||
* We must not free current_ace here as its
|
||||
* pointer is now owned by the dir_ace list.
|
||||
*/
|
||||
current_ace = NULL;
|
||||
}
|
||||
}
|
||||
@ -1036,6 +1044,10 @@ Deny entry after Allow entry. Failing to set on file %s.\n", fsp->fsp_name ));
|
||||
print_canon_ace( current_ace, 0);
|
||||
}
|
||||
all_aces_are_inherit_only = False;
|
||||
/*
|
||||
* We must not free current_ace here as its
|
||||
* pointer is now owned by the file_ace list.
|
||||
*/
|
||||
current_ace = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user