diff options
author | roland <roland> | 2005-11-27 00:09:43 +0000 |
---|---|---|
committer | roland <roland> | 2005-11-27 00:09:43 +0000 |
commit | 5f1bee2ff21d2931b4c74be840c05cd8a1c58708 (patch) | |
tree | 496a1ed6a146c7ca1be7c86c6fb0487847eaad7e /loc2c-test.c | |
parent | ad6b152158f20b16192c06206d0ef439df2d08c7 (diff) | |
download | systemtap-steved-5f1bee2ff21d2931b4c74be840c05cd8a1c58708.tar.gz systemtap-steved-5f1bee2ff21d2931b4c74be840c05cd8a1c58708.tar.xz systemtap-steved-5f1bee2ff21d2931b4c74be840c05cd8a1c58708.zip |
2005-11-26 Roland McGrath <roland@redhat.com>
* loc2c-test.c (main): Free SCOPES at end.
(handle_variable): Free POOL at end.
Diffstat (limited to 'loc2c-test.c')
-rw-r--r-- | loc2c-test.c | 4 |
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; |