diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-15 06:15:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-15 06:15:27 +0000 |
commit | f23d52e0a54905bc88c1a5ea25168227356d6f37 (patch) | |
tree | 9b55315786830882293a4225641d0bbd44fecefc /gdb/ax-general.c | |
parent | 4d6140d95eace437441b17dd43a7b0a456d3803a (diff) | |
download | gdb-f23d52e0a54905bc88c1a5ea25168227356d6f37.zip gdb-f23d52e0a54905bc88c1a5ea25168227356d6f37.tar.gz gdb-f23d52e0a54905bc88c1a5ea25168227356d6f37.tar.bz2 |
Cleanup free_agent_expr cleanups.
Diffstat (limited to 'gdb/ax-general.c')
-rw-r--r-- | gdb/ax-general.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ax-general.c b/gdb/ax-general.c index 34ec3b3..4612e8e 100644 --- a/gdb/ax-general.c +++ b/gdb/ax-general.c @@ -62,6 +62,18 @@ free_agent_expr (x) free (x); } +static void +do_free_agent_expr_cleanup (void *x) +{ + free_agent_expr (x); +} + +struct cleanup * +make_cleanup_free_agent_expr (struct agent_expr *x) +{ + return make_cleanup (do_free_agent_expr_cleanup, x); +} + /* Make sure that X has room for at least N more bytes. This doesn't affect the length, just the allocated size. */ |