Syntax of memory-freeing APIs #125
Unanswered
Dave Thaler (dthaler)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Today, APIs that free memory follow the POSIX standard model for free(), etc., namely:
In microsoft/ebpf-for-windows#2783 (comment), Gianni Trevisiol (@gtrevi) asks:
That is, Gianni asks about changing point 1 above, to take an
[in,out]pointer to the pointer, and set it to null after freeing.In #109, Nick Banks (@nibanks) also asks about changing point 2 above. There, Dave Thaler responded:
The first point applies to Gianni's question as well.
All reactions