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

Potential resource leak in C client when processing unexpected / out of order response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.8, 3.5.2
    • 3.4.9, 3.5.3
    • c client
    • None

    Description

      In C client, we use reference counting to decide if a given zh handle can be destroyed or not. This requires we always make sure to call api_prolog (which increment the counter) and api_epilog (which decrease the counter) in pairs, for a given call context.

      In zookeeper_process, there is a place where the code will return without invoking api_epilog, which would lead to potential zh resource leak.

      Attachments

        1. ZOOKEEPER-2498.patch
          1.0 kB
          Michael Han

        Activity

          People

            hanm Michael Han
            hanm Michael Han
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: