projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: use zmalloc() in lttng list.c
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index a91d30757e1b9bdbd698a317aa93d286c778a038..87c99dde443d4d53c241954b21201f3bd2c8dcec 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-116,7
+116,7
@@
static char *get_cmdline_by_pid(pid_t pid)
}
/* Caller must free() *cmdline */
- cmdline = malloc(PATH_MAX);
+ cmdline =
z
malloc(PATH_MAX);
if (!cmdline) {
perror("malloc cmdline");
goto end;
This page took
0.023782 seconds
and
4
git commands to generate.