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

Memory leak in Zookeeper C Client

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.2
    • Fix Version/s: None
    • Component/s: c client
    • Labels:
      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

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

              Dates

              • Created:
                Updated: