Fix: free metadata cache after grace period in consumer
[lttng-tools.git] / src / common / health / health.c
index d2414ae5776cbd563e0df3cd1b0d1709979dd869..3eea3adc0c34f5b6438736f9462b74ea6606bba6 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <inttypes.h>
 #include <stdio.h>
@@ -81,7 +82,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;
        }
This page took 0.026142 seconds and 4 git commands to generate.