Fixes memory leak in Process.runSync()
This was introduced in 36665 by https://codereview.chromium.org/307503002/ R=iposva@google.com Review URL: https://codereview.chromium.org//690513002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41378 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -451,6 +451,9 @@ class _ProcessImpl extends _ProcessImplNativeWrapper with _ServiceObject
|
||||
return encoding.decode(output);
|
||||
}
|
||||
|
||||
_stdin._sink.destroy();
|
||||
_processes.remove(_serviceId);
|
||||
|
||||
return new _ProcessResult(
|
||||
result[0],
|
||||
result[1],
|
||||
|
||||
Reference in New Issue
Block a user