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

fix memory leaks in cli_st

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.6, 3.5.0
    • Component/s: c client
    • Labels:
      None
    • Release Note:
      The fix for this issue solves the memory leak spotted in the absence of errors. In the case the completion function is not registered because of an error (e.g., see zoo_async), the line duplicate won't be freed.

      Description

      Fix two memory leaks revealed by running:

      valgrind --leak-check=full ./.libs/cli_st 127.0.0.1:2182
      create /foo
      quit
      

        Attachments

        1. ZOOKEEPER-1632.001.patch
          2 kB
          Colin McCabe
        2. ZOOKEEPER-1632.002.patch
          2 kB
          Colin McCabe
        3. ZOOKEEPER-1632-b3.4.patch
          1 kB
          Flavio Paiva Junqueira
        4. ZOOKEEPER-1632-trunk.patch
          2 kB
          Flavio Paiva Junqueira

          Issue Links

            Activity

              People

              • Assignee:
                fpj Flavio Paiva Junqueira
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: