projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change malloc to zmalloc in lttng-sessiond code
[lttng-tools.git]
/
lttng-sessiond
/
session.c
diff --git
a/lttng-sessiond/session.c
b/lttng-sessiond/session.c
index c7ce843d71669f3b40609293341dbf8f665a73a1..2ab49485f738a9d3c45df96ba91baed4a397794b 100644
(file)
--- a/
lttng-sessiond/session.c
+++ b/
lttng-sessiond/session.c
@@
-175,9
+175,9
@@
int session_create(char *name, char *path)
}
/* Allocate session data structure */
}
/* Allocate session data structure */
- new_session = malloc(sizeof(struct ltt_session));
+ new_session =
z
malloc(sizeof(struct ltt_session));
if (new_session == NULL) {
if (new_session == NULL) {
- perror("malloc");
+ perror("
z
malloc");
ret = LTTCOMM_FATAL;
goto error_malloc;
}
ret = LTTCOMM_FATAL;
goto error_malloc;
}
This page took
0.02566 seconds
and
5
git commands to generate.