X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fconditions%2Fevent-rule-matches.cpp;h=0a926755ecee1eef537805e89604ed8810c38f08;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=033dbca48a040b46131d7b9b5615e6f06e7e946f;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/conditions/event-rule-matches.cpp b/src/common/conditions/event-rule-matches.cpp index 033dbca48..0a926755e 100644 --- a/src/common/conditions/event-rule-matches.cpp +++ b/src/common/conditions/event-rule-matches.cpp @@ -518,7 +518,7 @@ struct lttng_condition *lttng_condition_event_rule_matches_create( goto end; } - condition = (lttng_condition_event_rule_matches *) zmalloc(sizeof(struct lttng_condition_event_rule_matches)); + condition = zmalloc(); if (!condition) { return NULL; } @@ -889,7 +889,7 @@ lttng_condition_event_rule_matches_append_capture_descriptor( goto end; } - descriptor = (lttng_capture_descriptor *) malloc(sizeof(*descriptor)); + descriptor = malloc(); if (descriptor == NULL) { status = LTTNG_CONDITION_STATUS_ERROR; goto end; @@ -1385,7 +1385,7 @@ struct lttng_evaluation *lttng_evaluation_event_rule_matches_create( struct lttng_evaluation_event_rule_matches *hit; struct lttng_evaluation *evaluation = NULL; - hit = (lttng_evaluation_event_rule_matches *) zmalloc(sizeof(struct lttng_evaluation_event_rule_matches)); + hit = zmalloc(); if (!hit) { goto error; }