X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Ftable.c;h=31348a46a70d53b32aa6c3e7fdd8cd9bb2c5eea4;hb=08959981d167390d9c9ba0ac5a8a2558de9175af;hp=01ab1bffc0acef9c4b1b10a5957776a294a7081c;hpb=0c15548837a299334adf32401f9d8dc2806cb320;p=pspp 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,