diff options
author | Jeff Law <law@redhat.com> | 1997-07-25 22:47:17 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1997-07-25 22:47:17 +0000 |
commit | 5959df8e16259bc59fd10c8c187e1baa130c8aeb (patch) | |
tree | 1412a6ab11c461e137f46c2b3cbe566e3486b577 /gdb/top.c | |
parent | 264b9de03ab25f703f71aec0df7a2d7f9e556646 (diff) | |
download | gdb-5959df8e16259bc59fd10c8c187e1baa130c8aeb.zip gdb-5959df8e16259bc59fd10c8c187e1baa130c8aeb.tar.gz gdb-5959df8e16259bc59fd10c8c187e1baa130c8aeb.tar.bz2 |
* top.c (execute_command): Force cleanup of alloca areas.
* findvar.c (registers_changed): Likewise.
Fixes memory "leak" reported by HP. Call from execute_command is for general
alloca cleanup; call from registers_changed is to fix hp's specific problem.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1209,6 +1209,10 @@ execute_command (p, from_tty) free_all_values (); + /* Force cleanup of any alloca areas if using C alloca instead of + a builtin alloca. */ + alloca (0); + /* This can happen when command_line_input hits end of file. */ if (p == NULL) return; |