Message ID | 7e8ff8ab-6918-ae65-c59f-b30103506185@codesourcery.com |
---|---|
State | New |
Headers | show |
Series | [OG9,amdgcn,committed] Fix memory leak in libgomp | expand |
Fix memory leak in libgomp when using OpenMP 2019-09-10 Kwok Cheung Yeung <kcy@codesourcery.com> libgomp/ * config/gcn/team.c (gomp_gcn_exit_kernel): Free GCN thread list. diff --git a/libgomp/config/gcn/team.c b/libgomp/config/gcn/team.c index 79aec65a24e..534cf595c98 100644 --- a/libgomp/config/gcn/team.c +++ b/libgomp/config/gcn/team.c @@ -93,6 +93,7 @@ void gomp_gcn_exit_kernel (void) { gomp_free_thread (gcn_thrs ()); + free (gcn_thrs ()); } /* This function contains the idle loop in which a thread waits