On Wed, 2022-04-06 at 04:50 -0400, Mohamad Al-Jaf wrote:
On Wed, Apr 6, 2022 at 4:38 AM Hans Leidekker hans@codeweavers.com wrote:
void WINAPI BCryptFreeBuffer( void *buffer ) {
- FIXME( "%p\n", buffer );
- free( buffer );
}
Is this how similar functions are generally implemented? I'm assuming this only applies to simple variables and not something like a struct, which I think requires freeing each member. I was going to implement it myself but I didn't feel confident just one line would suffice.
It depends on how memory is returned to the caller. So far we return flat buffers, so this is fine.