--- record.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/record.c +++ b/record.c @@ -1023,7 +1023,10 @@ record_xfer_partial (struct target_ops * "will make the execution log unusable from this " "point onward. Write memory at address %s?"), paddress (target_gdbarch, offset))) - error (_("Process record canceled the operation.")); + { + free_all_values (); + error (_("Process record canceled the operation.")); + } /* Destroy the record from here forward. */ record_list_release_next ();