Permalink
Browse files

restore cosmic balance by plugging a mem leak; problem reported by

Benjamin Pineau in PR 5008; ok weingart@
  • Loading branch information...
1 parent f70bff0 commit 7d3902c063d821ba283676b2c1871ca0910c202d @omoerbeek omoerbeek committed with Feb 7, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 file.c
View
3 file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.6 2005/02/02 06:17:17 tedu Exp $ */
+/* $OpenBSD: file.c,v 1.7 2005/02/07 08:47:18 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);
}

0 comments on commit 7d3902c

Please sign in to comment.