bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnulib: close file handler before exiting


From: zhaoshuang
Subject: [PATCH] gnulib: close file handler before exiting
Date: Mon, 29 Apr 2024 18:00:41 +0800

---
 lib/gen-uni-tables.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/gen-uni-tables.c b/lib/gen-uni-tables.c
index 3ebcd83..94c687f 100644
--- a/lib/gen-uni-tables.c
+++ b/lib/gen-uni-tables.c
@@ -242,6 +242,8 @@ fill_attributes (const char *unicodedata_filename)
             {
               fprintf (stderr, "missing end range in '%s':%d\n",
                        unicodedata_filename, lineno);
+
+              fclose (stream);
               exit (1);
             }
           if (!(field1[0] == '<'
@@ -250,6 +252,8 @@ fill_attributes (const char *unicodedata_filename)
             {
               fprintf (stderr, "missing end range in '%s':%d\n",
                        unicodedata_filename, lineno);
+
+              fclose (stream);
               exit (1);
             }
           field1[strlen (field1) - 7] = '\0';
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]