diff --git a/src/gmp.c b/src/gmp.c index e61be6eb5..5af16cb1c 100644 --- a/src/gmp.c +++ b/src/gmp.c @@ -10113,7 +10113,7 @@ buffer_aggregate_xml (GString *xml, iterator_t* aggregate, const gchar* type, = g_tree_lookup (subgroup_c_counts, subgroup_value); if (subgroup_c_count == NULL) { - subgroup_c_count = g_malloc0 (sizeof (long int*)); + subgroup_c_count = g_malloc0 (sizeof (long int)); g_tree_insert (subgroup_c_counts, g_strdup (subgroup_value), subgroup_c_count); @@ -10297,7 +10297,7 @@ buffer_aggregate_xml (GString *xml, iterator_t* aggregate, const gchar* type, if (subgroup_c_sum == NULL) { - subgroup_c_sum = g_malloc (sizeof (double *)); + subgroup_c_sum = g_malloc (sizeof (double)); *subgroup_c_sum = 0; g_tree_insert (c_sum_tree,