Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!usenet.ins.cwru.edu!odin!chet From: chet@odin.INS.CWRU.Edu (Chet Ramey) Newsgroups: comp.os.linux.misc,comp.unix.shell,comp.unix.bsd.bsdi.misc,comp.unix.bsd.freebsd.misc,comp.unix.questions Subject: Fix for memory leak problem with bash-1.14.6 Date: 31 Jul 1996 18:19:31 GMT Organization: Case Western Reserve University Lines: 18 Distribution: world Message-ID: <4to83j$ggo@madeline.INS.CWRU.Edu> NNTP-Posting-Host: odin.ins.cwru.edu Xref: euryale.cc.adfa.oz.au comp.os.linux.misc:119584 comp.unix.shell:35202 comp.unix.bsd.bsdi.misc:4438 comp.unix.bsd.freebsd.misc:24744 comp.unix.questions:85100 A number of people have reported a memory leak problem with bash-1.14.6. Since it seems serious, I've decided to post this patch. It has been reported to fix the problem. *** subst.c~ Fri Nov 17 16:50:37 1995 --- subst.c Mon Jul 29 11:14:25 1996 *************** *** 953,956 **** --- 953,957 ---- *p = '\0'; strcpy (string, nstr); + free (nstr); } -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu