Date: Thu, 4 Jul 2002 03:40:04 -0700 (PDT) From: Maxim Konovalov <maxim@macomnet.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/40177: /bin/sh with builtin 'test' has memory leaks Message-ID: <200207041040.g64Ae4CD014686@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/40177; it has been noted by GNATS. From: Maxim Konovalov <maxim@macomnet.ru> To: Eugene Grosbein <eu@grosbein.pp.ru> Cc: bug-followup@freebsd.org Subject: Re: bin/40177: /bin/sh with builtin 'test' has memory leaks Date: Thu, 4 Jul 2002 14:35:42 +0400 (MSD) Could you please try a patch below? Index: test/test.c =================================================================== RCS file: /home/ncvs/src/bin/test/test.c,v retrieving revision 1.29.2.5 diff -u -r1.29.2.5 test.c --- test/test.c 29 Apr 2002 13:06:02 -0000 1.29.2.5 +++ test/test.c 4 Jul 2002 10:33:31 -0000 @@ -240,6 +240,7 @@ syntax(*t_wp, "unexpected operator"); (void)setregid(gid, egid); (void)setreuid(uid, euid); + free(nargv); return res; } %%% -- Maxim Konovalov, MAcomnet, Internet Dept., system engineer phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207041040.g64Ae4CD014686>