summaryrefslogtreecommitdiff
path: root/usr.bin/awk/main.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2022-06-03 19:40:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2022-06-03 19:40:57 +0000
commit85b7799ea07c7cec372903199173becc6afdbd37 (patch)
treeeb68d79e81b73c164247ce7c46c70d5cd2db328c /usr.bin/awk/main.c
parentc3afe39400d033dd0d7314b134334b2c62fad062 (diff)
Fix a file management memory leak that appears to have been there
since the files array was first initialized with stdin, stdout, and stderr (circa 1992). From Miguel Pineiro Jr.
Diffstat (limited to 'usr.bin/awk/main.c')
-rw-r--r--usr.bin/awk/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/awk/main.c b/usr.bin/awk/main.c
index 9d4d1a48ebb..f3a3fe423dc 100644
--- a/usr.bin/awk/main.c
+++ b/usr.bin/awk/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.51 2022/01/27 16:58:37 millert Exp $ */
+/* $OpenBSD: main.c,v 1.52 2022/06/03 19:40:56 millert Exp $ */
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
@@ -23,7 +23,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
****************************************************************/
-const char *version = "version 20211208";
+const char *version = "version 20220303";
#define DEBUG
#include <stdio.h>