diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 73d962c..e774bca 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1996,7 +1996,10 @@ bpstat_copy (bpstat bs) if (bs->commands != NULL) tmp->commands = copy_command_lines (bs->commands); if (bs->old_val != NULL) - tmp->old_val = value_copy (bs->old_val); + { + tmp->old_val = value_copy (bs->old_val); + release_value (tmp->old_val); + } if (p == NULL) /* This is the first thing in the chain. */ |