diff options
| author | 2006-02-07 22:05:54 +0000 | |
|---|---|---|
| committer | 2006-02-07 22:05:54 +0000 | |
| commit | 3faa8aa0a19c89ce3d07bc4257cb23a5391e150a (patch) | |
| tree | 4cf2964f858b1059d8a713972db1e2503981fb2d | |
| parent | mention source of pf_modulate_sack() in comment, no code change, (diff) | |
| download | wireguard-openbsd-3faa8aa0a19c89ce3d07bc4257cb23a5391e150a.tar.xz wireguard-openbsd-3faa8aa0a19c89ce3d07bc4257cb23a5391e150a.zip | |
restore cosmic balance by plugging a mem leak; problem reported by
Benjamin Pineau in PR 5008; ok weingart@
| -rw-r--r-- | usr.bin/grep/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/grep/file.c b/usr.bin/grep/file.c index a11fcfc259e..dcb99ed8d26 100644 --- a/usr.bin/grep/file.c +++ b/usr.bin/grep/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.7 2005/02/07 08:47:18 otto Exp $ */ +/* $OpenBSD: file.c,v 1.8 2006/02/07 22:05:54 otto Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -228,4 +228,5 @@ grep_close(file_t *f) /* can't happen */ errx(2, "invalid file type"); } + free(f); } |
