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
/
common
/
consumer
/
consumer-stream.cpp
diff --git
a/src/common/consumer/consumer-stream.cpp
b/src/common/consumer/consumer-stream.cpp
index f57e37ab81379027daf318acc58d2b90b710b41d..c22c7e5f3390f74576bb22fa0bfe10e506ed9a51 100644
(file)
--- a/
src/common/consumer/consumer-stream.cpp
+++ b/
src/common/consumer/consumer-stream.cpp
@@
-654,7
+654,7
@@
struct lttng_consumer_stream *consumer_stream_create(
int ret;
struct lttng_consumer_stream *stream;
- stream =
(lttng_consumer_stream *) zmalloc(sizeof(*stream)
);
+ stream =
zmalloc<lttng_consumer_stream>(
);
if (stream == NULL) {
PERROR("malloc struct lttng_consumer_stream");
ret = -ENOMEM;
This page took
0.026789 seconds
and
4
git commands to generate.