-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the autoptr_zero_obj() procedure for zeroing all bytes of the
managed object excluding the autoptr struct. The autoptr_unbind() precedure now calls autoptr_dtor() which requires a valid autoptr struct during cleanup. This call occurs after the call to the object destructor. The autoptr_zero_obj() procedure is to be used in place of memset() for zeroing the managed object within object destructors in order to preserve the base autoptr struct.
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters