X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fmetadata-bucket.cpp;h=f9c35e22ce4c4d3e25521c53e02d91dc9694c1eb;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=ed78ec9472f800e3b55358bd9c5e235135bf52e9;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/common/consumer/metadata-bucket.cpp b/src/common/consumer/metadata-bucket.cpp index ed78ec947..f9c35e22c 100644 --- a/src/common/consumer/metadata-bucket.cpp +++ b/src/common/consumer/metadata-bucket.cpp @@ -25,9 +25,7 @@ struct metadata_bucket { struct metadata_bucket *metadata_bucket_create( metadata_bucket_flush_cb flush, void *data) { - struct metadata_bucket *bucket; - - bucket = (metadata_bucket *) zmalloc(sizeof(typeof(*bucket))); + metadata_bucket *bucket = zmalloc(); if (!bucket) { PERROR("Failed to allocate buffer bucket"); goto end;