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

Memory leak in Zookeeper C Client

    XMLWordPrintableJSON

Details

    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

        Issue Links

          Activity

            People

              gowrima Gowrima
              rogerluo Roger Luo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h