2014-07-03 16:56:24 +02:00
|
|
|
http://lists.gnu.org/archive/html/bug-gnu-utils/2014-06/msg00000.html
|
|
|
|
|
2017-01-07 13:38:45 +01:00
|
|
|
Index: sed/utils.c
|
2014-07-03 16:56:24 +02:00
|
|
|
===================================================================
|
2017-01-07 13:38:45 +01:00
|
|
|
--- sed/utils.c.orig
|
|
|
|
+++ sed/utils.c
|
|
|
|
@@ -252,8 +252,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);
|
|
|
|
free(cur->name);
|
|
|
|
free(cur);
|
|
|
|
}
|