osproc: free resources properly for the new poInteractive flag
This commit is contained in:
parent
5f7ad9131f
commit
27bdf5c45c
1 changed files with 1 additions and 0 deletions
|
|
@ -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}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue