Re: [PATCH] expandargv: fix memory leak

2017-12-30 Thread Daniel van Gerpen
On Sat, 30 Dec 2017 18:27:30 +0100 Andreas Schwab wrote: > On Dez 30 2017, Daniel van Gerpen wrote: > > > When the responsefile's contents are interpolated into the argument > > vector, the pointer to original option string ("@filename") became > > lost. This caused a small leak for every respo

Re: [PATCH] expandargv: fix memory leak

2017-12-30 Thread Andreas Schwab
On Dez 30 2017, Daniel van Gerpen wrote: > When the responsefile's contents are interpolated into the argument vector, > the pointer to original option string ("@filename") became lost. This > caused a small leak for every responsefile on the commandline. argv elements generally don't point to t

[PATCH] expandargv: fix memory leak

2017-12-30 Thread Daniel van Gerpen
When the responsefile's contents are interpolated into the argument vector, the pointer to original option string ("@filename") became lost. This caused a small leak for every responsefile on the commandline. --- libiberty/argv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libiberty/arg