Skip to content

Commit 003da56

Browse files
committed
Close out unused filehandle so we don't leak.
Part of #1062
1 parent 6358bdd commit 003da56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htmlify.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ sub highlight-code-blocks {
955955
}
956956
}
957957
my ($tmp_fname, $tmp_io) = tempfile;
958-
spurt $tmp_fname, $node.contents.join;
958+
$tmp_io.spurt: $node.contents.join, :close;
959959
my $html;
960960
my $promise = Promise.new;
961961
my $tap = $proc-supply.tap( -> $json {

0 commit comments

Comments
 (0)