Re: [PATCH 2/2] perf tools: Prevent calling machine__delete() on non-allocated machine

2015-12-10 Thread Wangnan (F)
On 2015/12/10 13:52, Wang Nan wrote: To prevent futher commits calling machine__delete() on non-allocated 'struct machine' (which would cause memory corruption), this patch enforces machine__init(), record whether a machine structure is dynamically allocated or not, and warn if

Re: [PATCH 2/2] perf tools: Prevent calling machine__delete() on non-allocated machine

2015-12-10 Thread Wangnan (F)
On 2015/12/10 13:52, Wang Nan wrote: To prevent futher commits calling machine__delete() on non-allocated 'struct machine' (which would cause memory corruption), this patch enforces machine__init(), record whether a machine structure is dynamically allocated or not, and warn if

[PATCH 2/2] perf tools: Prevent calling machine__delete() on non-allocated machine

2015-12-09 Thread Wang Nan
To prevent futher commits calling machine__delete() on non-allocated 'struct machine' (which would cause memory corruption), this patch enforces machine__init(), record whether a machine structure is dynamically allocated or not, and warn if machine__delete() is called on incorrect object.

[PATCH 2/2] perf tools: Prevent calling machine__delete() on non-allocated machine

2015-12-09 Thread Wang Nan
To prevent futher commits calling machine__delete() on non-allocated 'struct machine' (which would cause memory corruption), this patch enforces machine__init(), record whether a machine structure is dynamically allocated or not, and warn if machine__delete() is called on incorrect object.