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

memory leak in create_buffer_iarchive() and create_buffer_oarchive()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • c client
    • None

    Description

      in create_buffer_iarchive() function, null check of ia and return should be done before allocing memory for buff, otherwise, memory of buff might be leak.

      same issue is existing in create_buffer_oarchive() function.

      Attachments

        Activity

          People

            Unassigned Unassigned
            guoxiang guoxiang niu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: