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-metadata-cache.cpp
diff --git
a/src/common/consumer/consumer-metadata-cache.cpp
b/src/common/consumer/consumer-metadata-cache.cpp
index a810c7dab9eea84bbac194d6f1afa304603ee100..274ecf48fa71275ee28803f850049b7ab882f763 100644
(file)
--- a/
src/common/consumer/consumer-metadata-cache.cpp
+++ b/
src/common/consumer/consumer-metadata-cache.cpp
@@
-129,8
+129,7
@@
int consumer_metadata_cache_allocate(struct lttng_consumer_channel *channel)
LTTNG_ASSERT(channel);
LTTNG_ASSERT(channel);
- channel->metadata_cache = (consumer_metadata_cache *) zmalloc(
- sizeof(struct consumer_metadata_cache));
+ channel->metadata_cache = zmalloc<consumer_metadata_cache>();
if (!channel->metadata_cache) {
PERROR("zmalloc metadata cache struct");
ret = -1;
if (!channel->metadata_cache) {
PERROR("zmalloc metadata cache struct");
ret = -1;
This page took
0.023953 seconds
and
4
git commands to generate.