API for word alignment in the C runtime and in the Haskell binding

This commit is contained in:
kr.angelov
2014-12-29 10:59:20 +00:00
parent 8fd24c3839
commit 3bd40dbab6
8 changed files with 269 additions and 2 deletions

View File

@@ -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)) {