[Ada] Fix memory leak in win32_wait error handling
authorPascal Obry <obry@adacore.com>
Wed, 23 May 2018 10:24:04 +0000 (10:24 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 23 May 2018 10:24:04 +0000 (10:24 +0000)
commitcd742f4a165865225a3a6c6d1bd287897994bdd1
tree4e15cbe2ec77273513a9c82549d290c9dafcefc8
parentc2d2963d2c69d3a52e491e149fbaeeb5813b9e24
[Ada] Fix memory leak in win32_wait error handling

2018-05-23  Pascal Obry  <obry@adacore.com>

gcc/ada/

* adaint.c (win32_wait): Properly free the handle/pid lists when
WaitForMultipleObjects fails (return WAIT_FAILED).

From-SVN: r260599
gcc/ada/ChangeLog
gcc/ada/adaint.c