diff options
author | 2017-02-01 21:34:06 +0900 | |
---|---|---|
committer | 2017-02-08 09:41:11 -0300 | |
commit | 506fde11a35f39e1b44478339c41e94dfd278aa2 (patch) | |
tree | 692e9beb1740f809be531e485607a61dd9ae7522 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf tools: Add missing check for failure in a zalloc() call (diff) | |
download | linux-dev-506fde11a35f39e1b44478339c41e94dfd278aa2.tar.xz linux-dev-506fde11a35f39e1b44478339c41e94dfd278aa2.zip |
perf tools: Use zfree() instead of ad hoc equivalent
We have zfree(&ptr) for this very common pattern:
free(ptr);
ptr = NULL;
So use it in a few more places.
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1485952447-7013-4-git-send-email-treeze.taeung@gmail.com
[ rewrote commit log ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions