This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Memory leak or incorrect use of '#pragma omp parallel'?


Mikolaj Golub <to.my.trociny@gmail.com> writes:

> The problem is in libgomp/team.c.  gomp_thread_start() does gomp_sem_init()
> but gomp_sem_destroy() is never called. FreeBSD implementation of sem_init()
> allocates some memory for semaphore. This patch solves the problem for me:

Thanks for tracking that down, and filing the bug report with the patch.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]