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
/
stream.cpp
diff --git
a/src/bin/lttng-relayd/stream.cpp
b/src/bin/lttng-relayd/stream.cpp
index aba160bfa473c5ac401f9e62a55482839e3c837d..9f7bfcb15bb513229118302765c8c8f2655f7f91 100644
(file)
--- a/
src/bin/lttng-relayd/stream.cpp
+++ b/
src/bin/lttng-relayd/stream.cpp
@@
-580,7
+580,7
@@
struct relay_stream *stream_create(struct ctf_trace *trace,
bool acquired_reference = false;
struct lttng_trace_chunk *current_trace_chunk;
bool acquired_reference = false;
struct lttng_trace_chunk *current_trace_chunk;
- stream =
(relay_stream *) zmalloc(sizeof(struct relay_stream)
);
+ stream =
zmalloc<relay_stream>(
);
if (stream == NULL) {
PERROR("relay stream zmalloc");
goto error_no_alloc;
if (stream == NULL) {
PERROR("relay stream zmalloc");
goto error_no_alloc;
This page took
0.022791 seconds
and
4
git commands to generate.