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
/
index
/
index.cpp
diff --git
a/src/common/index/index.cpp
b/src/common/index/index.cpp
index 9d6895baea9817af1a7e4c34dafffbce53e131ea..de66ac4bdd3088427fccd5d9a00f0adc5a4a4da9 100644
(file)
--- a/
src/common/index/index.cpp
+++ b/
src/common/index/index.cpp
@@
-45,7
+45,7
@@
static enum lttng_trace_chunk_status _lttng_index_file_create_from_trace_chunk(
LTTNG_ASSERT(acquired_reference);
LTTNG_ASSERT(acquired_reference);
- index_file =
(lttng_index_file *) zmalloc(sizeof(*index_file)
);
+ index_file =
zmalloc<lttng_index_file>(
);
if (!index_file) {
PERROR("Failed to allocate lttng_index_file");
chunk_status = LTTNG_TRACE_CHUNK_STATUS_ERROR;
if (!index_file) {
PERROR("Failed to allocate lttng_index_file");
chunk_status = LTTNG_TRACE_CHUNK_STATUS_ERROR;
This page took
0.02902 seconds
and
4
git commands to generate.