Cleanup free_agent_expr cleanups.

This commit is contained in:
Andrew Cagney
2000-05-15 06:15:27 +00:00
parent 4d6140d95e
commit f23d52e0a5
5 changed files with 28 additions and 6 deletions

View File

@@ -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. */