Re: Patch to fix a memory leak in pat_subst

2016-08-24 Thread Chet Ramey
On 8/23/16 8:34 PM, Dmitry Goncharov wrote: > Good morning. > > This patch fixes a leak in pat_subst. Thanks for the report and fix. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@cas

Patch to fix a memory leak in pat_subst

2016-08-23 Thread Dmitry Goncharov
Good morning. This patch fixes a leak in pat_subst. regards, Dmitry diff --git a/subst.c b/subst.c index 3958237..673376b 100644 --- a/subst.c +++ b/subst.c @@ -6682,6 +6682,7 @@ pat_subst (string, pat, rep, mflags) mstr[x] = s[x]; mstr[mlen] = '\0'; rstr = strcr