[Bug libgomp/26651] New: [gomp] #omp for ordered leaks memory
dev at stuffit dot at
gcc-bugzilla@gcc.gnu.org
Sun Mar 12 13:24:00 GMT 2006
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
More information about the Gcc-bugs
mailing list