Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / consumer / consumer-metadata-cache.cpp
index a810c7dab9eea84bbac194d6f1afa304603ee100..274ecf48fa71275ee28803f850049b7ab882f763 100644 (file)
@@ -129,8 +129,7 @@ int consumer_metadata_cache_allocate(struct lttng_consumer_channel *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;
This page took 0.024063 seconds and 4 git commands to generate.