Re: [PATCH v8 4/5] perf config: Use zfree() instead of free() at perf_config_set__delete()

2016-06-10 Thread Taeung Song
On 06/09/2016 10:37 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Jun 08, 2016 at 09:36:52PM +0900, Taeung Song escreveu: perf_config_set__delete() delete allocated the config set but the global variable 'config_set' is used all around. So purge and zfree by an address of the global variable

Re: [PATCH v8 4/5] perf config: Use zfree() instead of free() at perf_config_set__delete()

2016-06-10 Thread Taeung Song
On 06/09/2016 10:37 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Jun 08, 2016 at 09:36:52PM +0900, Taeung Song escreveu: perf_config_set__delete() delete allocated the config set but the global variable 'config_set' is used all around. So purge and zfree by an address of the global variable

Re: [PATCH v8 4/5] perf config: Use zfree() instead of free() at perf_config_set__delete()

2016-06-09 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 08, 2016 at 09:36:52PM +0900, Taeung Song escreveu: > perf_config_set__delete() delete allocated the config set > but the global variable 'config_set' is used all around. > So purge and zfree by an address of the global variable > , i.e. 'struct perf_config_set **' type > instead of

Re: [PATCH v8 4/5] perf config: Use zfree() instead of free() at perf_config_set__delete()

2016-06-09 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 08, 2016 at 09:36:52PM +0900, Taeung Song escreveu: > perf_config_set__delete() delete allocated the config set > but the global variable 'config_set' is used all around. > So purge and zfree by an address of the global variable > , i.e. 'struct perf_config_set **' type > instead of

[PATCH v8 4/5] perf config: Use zfree() instead of free() at perf_config_set__delete()

2016-06-08 Thread Taeung Song
perf_config_set__delete() delete allocated the config set but the global variable 'config_set' is used all around. So purge and zfree by an address of the global variable , i.e. 'struct perf_config_set **' type instead of using local variable 'set' of which type is 'struct perf_config_set *'.

[PATCH v8 4/5] perf config: Use zfree() instead of free() at perf_config_set__delete()

2016-06-08 Thread Taeung Song
perf_config_set__delete() delete allocated the config set but the global variable 'config_set' is used all around. So purge and zfree by an address of the global variable , i.e. 'struct perf_config_set **' type instead of using local variable 'set' of which type is 'struct perf_config_set *'.