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-sessiond
/
thread.cpp
diff --git
a/src/bin/lttng-sessiond/thread.cpp
b/src/bin/lttng-sessiond/thread.cpp
index 9ce539b816a99732cf0a6c3ed5c3901584e8e44a..94890e6ef47786db7d13fce3fac6f9e372fe878a 100644
(file)
--- a/
src/bin/lttng-sessiond/thread.cpp
+++ b/
src/bin/lttng-sessiond/thread.cpp
@@
-77,7
+77,7
@@
struct lttng_thread *lttng_thread_create(const char *name,
int ret;
struct lttng_thread *thread;
- thread =
(lttng_thread *) zmalloc(sizeof(*thread)
);
+ thread =
zmalloc<lttng_thread>(
);
if (!thread) {
goto error_alloc;
}
This page took
0.037923 seconds
and
4
git commands to generate.