pivot-table: Fix memory leak in pivot_table_destroy()
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 1 Jan 2021 18:54:33 +0000 (10:54 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 1 Jan 2021 19:13:58 +0000 (11:13 -0800)
src/output/pivot-table.c

index a01bae388d63affce42a4f89830e677150550f67..3fd336690820c8409c4b6b653cc88081e2d54b5d 100644 (file)
@@ -905,6 +905,7 @@ pivot_table_unref (struct pivot_table *table)
   pivot_value_destroy (table->subtype);
   pivot_value_destroy (table->corner_text);
   pivot_value_destroy (table->caption);
+  free (table->notes);
 
   for (size_t i = 0; i < table->n_dimensions; i++)
     pivot_dimension_destroy (table->dimensions[i]);