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

zookeeper c api sasl client memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.2
    • 3.7.0
    • c client
    • 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

            Unassigned Unassigned
            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