[PATCH 48/49] perf tools: Introduce zfree

2013-12-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For the frequent idiom of: free(ptr); ptr = NULL; Make it expect a pointer to the pointer being freed, so that it becomes clear at first sight that the variable being freed is being modified. Cc: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc:

[PATCH 48/49] perf tools: Introduce zfree

2013-12-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo a...@redhat.com For the frequent idiom of: free(ptr); ptr = NULL; Make it expect a pointer to the pointer being freed, so that it becomes clear at first sight that the variable being freed is being modified. Cc: Adrian Hunter adrian.hun...@intel.com Cc: