[RFC, PATCH] teach utrace to destroy engine->data

Oleg Nesterov oleg at redhat.com
Tue Aug 18 14:36:41 UTC 2009


On 08/17, Roland McGrath wrote:
>
> If we do add the destructor hook, I think it looks like this.
> ...
> @@ -271,6 +273,7 @@ struct utrace_engine *utrace_attach_task(
>  	engine->flags = 0;
>  	engine->ops = ops;
>  	engine->data = data;
> +	engine->release = ops->release;

Agreed! this is much better.

Oleg.




More information about the utrace-devel mailing list