projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: lttng: track: leaked command parameter
[lttng-tools.git]
/
src
/
bin
/
lttng
/
conf.cpp
diff --git
a/src/bin/lttng/conf.cpp
b/src/bin/lttng/conf.cpp
index d79fba989f1368bc75cfcb2575f8b459b232b7cb..33550eb3778fe5fb636c0700618b153804f84057 100644
(file)
--- a/
src/bin/lttng/conf.cpp
+++ b/
src/bin/lttng/conf.cpp
@@
-178,7
+178,7
@@
int _config_read_session_name(const char *path, char **name)
#define NAME_MAX_SCANF_IS_A_BROKEN_API "254"
#endif
- session_name =
(char *) zmalloc
(NAME_MAX);
+ session_name =
calloc<char>
(NAME_MAX);
if (session_name == NULL) {
ret = -ENOMEM;
ERR("Out of memory");
This page took
0.023394 seconds
and
4
git commands to generate.