diff options
author | Pascal Obry <obry@adacore.com> | 2020-05-22 18:37:17 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-07-10 05:16:21 -0400 |
commit | 002f8329d208e3c3f032bf2ce914a70cfe02ef9f (patch) | |
tree | ccd895eac32019c2aff02ae16ee87a4b114b974e /gcc/cp/class.c | |
parent | 715aea70f359a97a28aaa5e6fb4d3688cebbbcd6 (diff) | |
download | gcc-002f8329d208e3c3f032bf2ce914a70cfe02ef9f.zip gcc-002f8329d208e3c3f032bf2ce914a70cfe02ef9f.tar.gz gcc-002f8329d208e3c3f032bf2ce914a70cfe02ef9f.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/cp/class.c')
0 files changed, 0 insertions, 0 deletions