Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4020

Memory leak in Zookeeper C Client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.6.2
    • None
    • c client
    • None

    Description

      There is memory leak in the SSL support of Zookeeper C Client, see below code (line 1457 of zookeeper.c):

          zcert.ca = strtok(strdup(cert), ","); 
      

      In the above code, memory is allocated by calling strdup, but it's never been released.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rogerluo Roger Luo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: