summaryrefslogtreecommitdiff
path: root/m4/getline.m4
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:21 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:21 +0900
commit8abe09f3b00fd31d1af24d3038f881034506d651 (patch)
tree057549dc80e468dce35223ddb305aa362968ed53 /m4/getline.m4
parentafd456999b076e5e6505dd5ca6942a5e7471c70c (diff)
downloadwget-8abe09f3b00fd31d1af24d3038f881034506d651.tar.gz
wget-8abe09f3b00fd31d1af24d3038f881034506d651.tar.bz2
wget-8abe09f3b00fd31d1af24d3038f881034506d651.zip
Imported Upstream version 1.19.3upstream/1.19.3
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 dcea772..14b62c9 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);