[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: user/5008: small memleak in usr.bin/grep/util.c
- To: bugs_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: Re: user/5008: small memleak in usr.bin/grep/util.c
- From: Otto Moerbeek <otto_(_at_)_drijf_(_dot_)_net>
- Date: Tue, 7 Feb 2006 08:05:02 -0700 (MST)
- Cc:
- Reply-to: Otto Moerbeek <otto_(_at_)_drijf_(_dot_)_net>
The following reply was made to PR user/5008; it has been noted by GNATS.
From: Otto Moerbeek <otto_(_at_)_drijf_(_dot_)_net>
To: Benjamin Pineau <ben_(_at_)_zouh_(_dot_)_org>
Cc: gnats_(_at_)_openbsd_(_dot_)_org
Subject: Re: user/5008: small memleak in usr.bin/grep/util.c
Date: Tue, 7 Feb 2006 15:49:21 +0100 (CET)
On Tue, 7 Feb 2006, Benjamin Pineau wrote:
> >Number: 5008
> >Category: user
> >Synopsis: small memleak in usr.bin/grep/util.c
To improve cosmic balance, I prefer this...
-Otto
Index: file.c
===================================================================
RCS file: /cvs/src/usr.bin/grep/file.c,v
retrieving revision 1.7
diff -u -p -r1.7 file.c
--- file.c 7 Feb 2005 08:47:18 -0000 1.7
+++ file.c 7 Feb 2006 14:48:51 -0000
@@ -228,4 +228,5 @@ grep_close(file_t *f)
/* can't happen */
errx(2, "invalid file type");
}
+ free(f);
}
Visit your host, monkey.org