From 27bdf5c45c7850f62ae573fdcd86e8490a2bec15 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 29 Sep 2015 20:00:28 +0200 Subject: osproc: free resources properly for the new poInteractive flag --- lib/pure/osproc.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 454f9eda0..bc73f7119 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -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}: -- cgit 1.4.1-2-gfad0