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
/
ctf-trace.cpp
diff --git
a/src/bin/lttng-relayd/ctf-trace.cpp
b/src/bin/lttng-relayd/ctf-trace.cpp
index 4ee745a10c9102b42e01f32a6e16ffbf699a12cd..cad67b78e2517296f06e3610b2d7b3d7e25d2ce2 100644
(file)
--- a/
src/bin/lttng-relayd/ctf-trace.cpp
+++ b/
src/bin/lttng-relayd/ctf-trace.cpp
@@
-97,7
+97,7
@@
static struct ctf_trace *ctf_trace_create(struct relay_session *session,
{
struct ctf_trace *trace;
{
struct ctf_trace *trace;
- trace =
(ctf_trace *) zmalloc(sizeof(*trace)
);
+ trace =
zmalloc<ctf_trace>(
);
if (!trace) {
PERROR("Failed to allocate ctf_trace");
goto end;
if (!trace) {
PERROR("Failed to allocate ctf_trace");
goto end;
This page took
0.023896 seconds
and
4
git commands to generate.