X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fhealth%2Fhealth.c;h=2667e393002c8cbb21c22fdd70e384d90396d92d;hb=8d5841ea483139d3ab2f2b4dd39263dad63832b1;hp=d2414ae5776cbd563e0df3cd1b0d1709979dd869;hpb=55d097957f5bb8138959ad2202a40d85d49f029e;p=lttng-tools.git diff --git a/src/common/health/health.c b/src/common/health/health.c index d2414ae57..2667e3930 100644 --- a/src/common/health/health.c +++ b/src/common/health/health.c @@ -16,7 +16,7 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -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; }