X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fhealth%2Fhealth.c;h=49f6dc0ab91d7c7b3a3a1c8adfc6a360916ddddc;hp=d2414ae5776cbd563e0df3cd1b0d1709979dd869;hb=6c71277b0dc97ce8a4ac6b8d359b4b349c04b658;hpb=d74df4226a1b4461c896d51a221afe38e07809a7 diff --git a/src/common/health/health.c b/src/common/health/health.c index d2414ae57..49f6dc0ab 100644 --- a/src/common/health/health.c +++ b/src/common/health/health.c @@ -81,7 +81,7 @@ struct health_app *health_app_create(int nr_types) if (!ha) { return NULL; } - ha->flags = zmalloc(sizeof(*ha->flags)); + ha->flags = zmalloc(sizeof(*ha->flags) * nr_types); if (!ha->flags) { goto error_flags; }