summaryrefslogtreecommitdiffstats
path: root/m4/getline.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/getline.m4')
-rw-r--r--m4/getline.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/getline.m4 b/m4/getline.m4
index dcea772e..14b62c9c 100644
--- a/m4/getline.m4
+++ b/m4/getline.m4
@@ -1,6 +1,6 @@
-# getline.m4 serial 27
+# getline.m4 serial 28
-dnl Copyright (C) 1998-2003, 2005-2007, 2009-2017 Free Software Foundation,
+dnl Copyright (C) 1998-2003, 2005-2007, 2009-2018 Free Software Foundation,
dnl Inc.
dnl
dnl This file is free software; the Free Software Foundation
@@ -46,7 +46,7 @@ AC_DEFUN([gl_FUNC_GETLINE],
size_t siz = 0;
int len = getline (&line, &siz, in);
if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
- return 2;
+ { free (line); fclose (in); return 2; }
free (line);
}
{
@@ -55,7 +55,7 @@ AC_DEFUN([gl_FUNC_GETLINE],
char *line = NULL;
size_t siz = (size_t)(~0) / 4;
if (getline (&line, &siz, in) == -1)
- return 3;
+ { fclose (in); return 3; }
free (line);
}
fclose (in);