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

Reply via email to