X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fdata%2Fdatasheet-test.c;h=15e2c488fc3051e997948779f0d310ac97c07a27;hb=8539c057c6889ff335da0e00117cc0f5fb9bf72d;hp=98be04fe44b25c73a7cb608596b02296b3b3894c;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp diff --git a/tests/data/datasheet-test.c b/tests/data/datasheet-test.c index 98be04fe44..15e2c488fc 100644 --- a/tests/data/datasheet-test.c +++ b/tests/data/datasheet-test.c @@ -424,9 +424,12 @@ datasheet_mc_init (struct mc *mc) if (params->backing_rows == 0 && params->n_backing_cols == 0) { /* Create unbacked datasheet. */ + struct caseproto *proto; ds = datasheet_create (NULL); mc_name_operation (mc, "empty datasheet"); - check_datasheet (mc, ds, NULL, 0, caseproto_create ()); + proto = caseproto_create (); + check_datasheet (mc, ds, NULL, 0, proto); + caseproto_unref (proto); } else {