Avoid double free in startup_inferior
authorKamil Rytarowski <n54@gmx.com>
Wed, 2 Sep 2020 17:24:05 +0000 (19:24 +0200)
committerKamil Rytarowski <n54@gmx.com>
Thu, 10 Sep 2020 13:39:19 +0000 (15:39 +0200)
commitf404573e4f8d22f0f1f87eee4f08fa132b15a9aa
tree6c1545a3c6eba6083081df0d5af4e0098e20410e
parent1ccb2c170cea50671f7aa00eb6a2be2a33ea24a5
Avoid double free in startup_inferior

Do not free the last execd pathname as it will be used in
prepare_resume_reply(), after attaching a client side.

gdb/ChangeLog:

* fork-inferior.c (startup_inferior): Avoid double free.
gdb/ChangeLog
gdb/nat/fork-inferior.c