projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf tools: Introduce zfree
[linux-block.git]
/
tools
/
perf
/
util
/
help.c
diff --git
a/tools/perf/util/help.c
b/tools/perf/util/help.c
index 8b1f6e891b8a8f3857bbf98e97b7f1f9c84f9987..7b68978e50d24d98c7da185c606ca8e8b9be8a3a 100644
(file)
--- a/
tools/perf/util/help.c
+++ b/
tools/perf/util/help.c
@@
-263,9
+263,8
@@
static void add_cmd_list(struct cmdnames *cmds, struct cmdnames *old)
for (i = 0; i < old->cnt; i++)
cmds->names[cmds->cnt++] = old->names[i];
-
free(
old->names);
+
zfree(&
old->names);
old->cnt = 0;
- old->names = NULL;
}
const char *help_unknown_cmd(const char *cmd)