This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/26651] New: [gomp] #omp for ordered leaks memory
- From: "dev at stuffit dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2006 13:24:53 -0000
- Subject: [Bug libgomp/26651] New: [gomp] #omp for ordered leaks memory
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
int main()
{
#pragma omp parallel
{
#pragma omp for ordered
for(int i = 0; i < 1; i++)
;
}
}
produces 44 bytes memory leak because after the "omp for ordered"
gomp_work_share_start() gets called and allocs a struct gomp_work_share
which never gets freed because neither gomp_work_share_end() nor
gomp_work_share_end_nowait() is called at the end of the for loop.
--
Summary: [gomp] #omp for ordered leaks memory
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dev at stuffit dot at
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26651