Fix memory leak in render-test.c
[pspp] / tests / output / render-test.c
index 0d6f9684f30a6f87457f06105b7519a4b4bd5155..fdfb2d20b6feb0cf664fd8bc7251908cb89789bc 100644 (file)
@@ -116,6 +116,7 @@ main (int argc, char **argv)
       if (transpose)
         table = table_transpose (table);
       table_item_submit (table_item_create (table, NULL, NULL));
+      free (tables);
     }
   else
     draw (input);
@@ -488,7 +489,7 @@ read_table (FILE *stream, struct table **tables, size_t n_tables)
                   tab_joint_text (tab, c, r, c + cs - 1, r + rs - 1, opt,
                                   content);
                 else
-                  tab_footnote (tab, c, r, content);
+                  tab_footnote (tab, c, r, "%s", content);
             }
         }