mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
[bugfix] remove dangling ref (#11576)
(cherry picked from commit 91f0626dcb)
This commit is contained in:
committed by
narimiran
parent
8ab0be4530
commit
8396ddb3a4
@@ -1304,7 +1304,7 @@ elif not defined(useNimRtl):
|
||||
p.exitStatus = status
|
||||
result = exitStatusLikeShell(status)
|
||||
|
||||
proc createStream(stream: var Stream, handle: var FileHandle,
|
||||
proc createStream(stream: var owned(Stream), handle: var FileHandle,
|
||||
fileMode: FileMode) =
|
||||
var f: File
|
||||
if not open(f, handle, fileMode): raiseOSError(osLastError())
|
||||
|
||||
Reference in New Issue
Block a user