Re: [PATCH v2] libiberty(argv.c): Fix memory leak in expandargv.

2021-02-18 Thread Jeff Law via Gcc-patches
On 2/18/21 5:08 AM, Ayush Mittal via Gcc-patches wrote: > libiberty/ChangeLog: > > * argv.c (expandargv): free allocated buffer if read fails. I went ahead and committed this, even though we're in stage4 as other projects use libiberty and it's a trivial enough change that they shouldn't h

[PATCH v2] libiberty(argv.c): Fix memory leak in expandargv.

2021-02-18 Thread Ayush Mittal via Gcc-patches
libiberty/ChangeLog: * argv.c (expandargv): free allocated buffer if read fails. Signed-off-by: Ayush Mittal Signed-off-by: Maninder Singh --- v1 -> v2: corrected formatting and changelog commit libiberty/argv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/l