2014-07-03 16:56:24 +02:00
|
|
|
http://lists.gnu.org/archive/html/bug-gnu-utils/2014-06/msg00000.html
|
|
|
|
|
2018-12-27 10:23:03 +01:00
|
|
|
Index: sed-4.6/sed/utils.c
|
2014-07-03 16:56:24 +02:00
|
|
|
===================================================================
|
2018-12-27 10:23:03 +01:00
|
|
|
--- sed-4.6.orig/sed/utils.c
|
|
|
|
+++ sed-4.6/sed/utils.c
|
|
|
|
@@ -267,8 +267,8 @@ ck_fclose (FILE *stream)
|
2014-07-03 16:56:24 +02:00
|
|
|
{
|
|
|
|
if (!stream || stream == cur->fp)
|
2017-01-07 13:38:45 +01:00
|
|
|
{
|
|
|
|
- do_ck_fclose (cur->fp);
|
|
|
|
prev->link = cur->link;
|
|
|
|
+ do_ck_fclose (cur->fp);
|
2018-12-27 10:23:03 +01:00
|
|
|
free (cur->name);
|
|
|
|
free (cur);
|
2017-01-07 13:38:45 +01:00
|
|
|
}
|