gcc/libcc1
Tom Tromey ee75ca6b72 libcc1: fix a memory leak
libcc1 has a memory leak when calling fork_exec -- it allocates a new
vector of arguments, but then does not free it anywhere.  This patch
changes this code to use std::vector instead.

Note that the previous code tried to avoid bad_alloc.  I don't believe
this is very important.  For one thing, plenty of other allocations do
not bother with this.

libcc1

	* gdbctx.hh (do_compile): Use std::vector.
2021-05-05 00:06:18 -06:00
..
2021-01-04 10:26:59 +01:00
2021-05-04 00:16:53 +00:00
2021-01-04 10:26:59 +01:00
2021-05-05 00:06:17 -06:00
2021-05-05 00:06:17 -06:00
2021-01-04 10:26:59 +01:00
2021-05-05 00:06:17 -06:00
2021-05-05 00:06:17 -06:00
2021-05-05 00:06:17 -06:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-05-05 00:06:18 -06:00
2021-05-05 00:06:18 -06:00
2017-01-31 01:02:03 +00:00
2021-05-05 00:06:18 -06:00
2021-05-05 00:06:17 -06:00
2021-05-05 00:06:17 -06:00
2021-05-05 00:06:17 -06:00
2021-01-04 10:26:59 +01:00
2021-01-04 10:26:59 +01:00
2021-05-05 00:06:17 -06:00
2021-01-04 10:26:59 +01:00