mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
osproc: free resources properly for the new poInteractive flag
This commit is contained in:
@@ -534,6 +534,7 @@ when defined(Windows) and not defined(useNimRtl):
|
||||
|
||||
if e != nil: dealloc(e)
|
||||
if success == 0:
|
||||
if poInteractive in result.options: close(result)
|
||||
const errInvalidParameter = 87.int
|
||||
const errFileNotFound = 2.int
|
||||
if lastError.int in {errInvalidParameter, errFileNotFound}:
|
||||
|
||||
Reference in New Issue
Block a user