sed: do not close stderr on exit
Not needed, and prevents leak-sanitizing from working. * sed/utils.c (ck_fclose): Do not close stderr.
This commit is contained in:
1 parent
7c6a618904
commit
08675afe9a
1 file changed
+1
-4
+1
-4
@@ -267,10 +267,7 @@ ck_fclose (FILE *stream)
|
||||
last output operations might fail and it is important
|
||||
to signal this as an error (perhaps to make). */
|
||||
if (!stream)
|
||||
{
|
||||
do_ck_fclose (stdout);
|
||||
do_ck_fclose (stderr);
|
||||
}
|
||||
do_ck_fclose (stdout);
|
||||
}
|
||||
|
||||
/* Close a single file. */
|
||||
|
||||
Reference in new issue
Block a user