projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
session.cpp
diff --git
a/src/bin/lttng-relayd/session.cpp
b/src/bin/lttng-relayd/session.cpp
index abefc0d276ef355fefa11cc60d60de554e27b3da..a8a1520694025f3843b6cfabe9aebddca8a9488a 100644
(file)
--- a/
src/bin/lttng-relayd/session.cpp
+++ b/
src/bin/lttng-relayd/session.cpp
@@
-310,7
+310,7
@@
struct relay_session *session_create(const char *session_name,
goto error;
}
goto error;
}
- session =
(relay_session *) zmalloc(sizeof(*session)
);
+ session =
zmalloc<relay_session>(
);
if (!session) {
PERROR("Failed to allocate session");
goto error;
if (!session) {
PERROR("Failed to allocate session");
goto error;
This page took
0.0244 seconds
and
4
git commands to generate.