From a040b9686e72545ed3f6b7c6ec324bbacf46c42b Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 27 Jun 2020 07:27:25 +0200 Subject: [PATCH] Fix memory leak in src/output/table.c --- src/output/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/table.c b/src/output/table.c index 01ab1bffc0..31348a46a7 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -176,7 +176,7 @@ struct table * table_from_string (const char *text) { struct table *t = table_create (1, 1, 0, 0, 0, 0); - t->styles[0] = xmalloc (sizeof *t->styles[0]); + t->styles[0] = pool_alloc (t->container, sizeof *t->styles[0]); *t->styles[0] = (struct area_style) { AREA_STYLE_INITIALIZER__, .cell_style.halign = TABLE_HALIGN_LEFT, -- 2.30.2