From 3bd40dbab68c8354d8cfceb6dad32d24b13bc723 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 29 Dec 2014 10:59:20 +0000 Subject: API for word alignment in the C runtime and in the Haskell binding --- src/runtime/c/pgf/linearizer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/runtime/c/pgf/linearizer.c') diff --git a/src/runtime/c/pgf/linearizer.c b/src/runtime/c/pgf/linearizer.c index bbec2f3c2..409d60a2c 100644 --- a/src/runtime/c/pgf/linearizer.c +++ b/src/runtime/c/pgf/linearizer.c @@ -1160,8 +1160,10 @@ pgf_linearize(PgfConcr* concr, PgfExpr expr, GuOut* out, GuExn* err) GuEnum* cts = pgf_lzr_concretize(concr, expr, err, tmp_pool); - if (!gu_ok(err)) + if (!gu_ok(err)) { + gu_pool_free(tmp_pool); return; + } PgfCncTree ctree = gu_next(cts, PgfCncTree, tmp_pool); if (!gu_variant_is_null(ctree)) { -- cgit v1.2.3