summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loc2c-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/loc2c-test.c b/loc2c-test.c
index 4376b578..f3533636 100644
--- a/loc2c-test.c
+++ b/loc2c-test.c
@@ -294,6 +294,8 @@ handle_variable (Dwarf_Die *scopes, int nscopes, int out,
bool deref = c_emit_location (stdout, head, 1);
+ obstack_free (&pool, NULL);
+
puts (store ? " return;" :
" printk (\" ---> %ld\\n\", (unsigned long) value);\n"
" return;");
@@ -493,6 +495,8 @@ main (int argc, char **argv)
handle_variable (scopes, n, out, cubias, &vardie, pc, &argv[argi]);
}
+ free (scopes);
+
dwfl_end (dwfl);
return 0;