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
+2018-05-23 Pascal Obry <obry@adacore.com>
+
+ * adaint.c (win32_wait): Properly free the handle/pid lists when
+ WaitForMultipleObjects fails (return WAIT_FAILED).
+
2018-05-23 Pascal Obry <obry@adacore.com>
* adaint.c (win32_wait): Add missing parentheses.
/* If there was an error, exit now */
if (res == WAIT_FAILED)
{
+ free (hl);
+ free (pidl);
errno = EINVAL;
return -1;
}