diff options
author | Pascal Obry <obry@adacore.com> | 2020-05-22 18:37:17 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:17:12 -0300 |
commit | 8abff83e28a4efdaf625c1aa3d690b30dbb20694 (patch) | |
tree | 002d03c719d7a1ca297b3aad35f6cb9afbc3126c /gcc/fortran | |
parent | 0a8b2434df01fde5acedb208b33921f4dfe62450 (diff) | |
download | gcc-8abff83e28a4efdaf625c1aa3d690b30dbb20694.zip gcc-8abff83e28a4efdaf625c1aa3d690b30dbb20694.tar.gz gcc-8abff83e28a4efdaf625c1aa3d690b30dbb20694.tar.bz2 |
[Ada] Fix memory leak in routine Wait_On_Socket
gcc/ada/
* libgnat/g-socket.adb (Wait_On_Socket): Fix memory leaks and
file descriptor leaks. A memory leak was created each time the
routine was called without a selector (Selector = Null). Also,
in case of exception in the routine a memory leak and descriptor
leak was created as the created file selector was not closed.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions