You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Justyanzi Lin <ju...@gmail.com> on 2012/08/15 12:10:32 UTC

winport.c seems have memory leak

Hello,

    We use zookeeper 3.4.3 in windows platform.

    And found a issue in winport.c.

    At line 99, use windows API "InitializeCriticalSection" but never call "
DeleteCriticalSection"

    It may cause memory problem.

Best Regards

Re: winport.c seems have memory leak

Posted by Michi Mutsuzaki <mi...@cs.stanford.edu>.
Hi Justyanzi,

Yes, that looks like a bug. Could you open a jira, and maybe submit a
patch while you are at it?

Thanks!
--Michi

On Wed, Aug 15, 2012 at 3:10 AM, Justyanzi Lin <ju...@gmail.com> wrote:
> Hello,
>
>     We use zookeeper 3.4.3 in windows platform.
>
>     And found a issue in winport.c.
>
>     At line 99, use windows API "InitializeCriticalSection" but never call "
> DeleteCriticalSection"
>
>     It may cause memory problem.
>
> Best Regards