[Ada] Fix memory leak in GNAT.Expect.Non_Blocking_Spawn on Windows
authorDmitriy Anisimkov <anisimko@adacore.com>
Sun, 29 Nov 2020 17:21:58 +0000 (23:21 +0600)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 16 Dec 2020 13:01:04 +0000 (08:01 -0500)
commit29cd42e01912a748bac0b483462e4373c0207870
treeeffbe6e62d3883f23027b92653b8c7c4397d4952
parent64f4351d83fedbfffc2a4ccdbd5e423ff7fa3958
[Ada] Fix memory leak in GNAT.Expect.Non_Blocking_Spawn on Windows

gcc/ada/

* libgnat/g-expect.adb (Non_Blocking_Spawn): Deallocate elements
on Arg_List after calling Set_Up_Child_Communications.
gcc/ada/libgnat/g-expect.adb