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

zookeeper c api sasl client memory leak

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.2
    • Fix Version/s: 3.7.0
    • Component/s: c client
    • Labels:
      None

      Description

      I find this memory leak through sanitizer.

      Here within zookeeper_close() it destroy the client and reset it to NULL. This client is created using calloc()

      In zoo_sasl_client_destroy(), the client is not freed, neither within zookeeper_close(). 

      I would suggest add a free() before setting it to NULL in zookeeper_close

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xiaotian_qi Xiaotian Qi
            • 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 - 2h 20m
                2h 20m