diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote-sim.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 906af75..ac61e65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-03-06 Tom Tromey <tromey@adacore.com> + + * remote-sim.c (gdbsim_target_open): Use result of + gdb_argv::release. + 2019-03-06 Richard Bunt <richard.bunt@arm.com> Dirk Schubert <dirk.schubert@arm.com> Chris January <chris.january@arm.com> diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 2acfc71..bef04e6 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -751,19 +751,18 @@ gdbsim_target_open (const char *args, int from_tty) } gdb_argv argv (arg_buf); - sim_argv = argv.get (); + sim_argv = argv.release (); init_callbacks (); gdbsim_desc = sim_open (SIM_OPEN_DEBUG, &gdb_callback, exec_bfd, sim_argv); if (gdbsim_desc == 0) { + freeargv (sim_argv); sim_argv = NULL; error (_("unable to create simulator instance")); } - argv.release (); - /* Reset the pid numberings for this batch of sim instances. */ next_pid = INITIAL_PID; |