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

I found memory leak in zk client for c++

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 3.4.6
    • Fix Version/s: 3.4.6
    • Component/s: c client
    • Labels:
      None
    • Environment:

      linux/centos 6.3

    • Release Note:
      it's not a bug. the client user muster release the memory manually.

      Description

      ==15070== 895,632 bytes in 57,640 blocks are indirectly lost in loss record 370 of 371
      ==15070== at 0x4C2677B: calloc (vg_replace_malloc.c:593)
      ==15070== by 0x4C59BB: deserialize_String_vector (zookeeper.jute.c:245)
      ==15070== by 0x4C5AE7: deserialize_GetChildrenResponse (zookeeper.jute.c:874)
      ==15070== by 0x4BEE7E: zookeeper_process (zookeeper.c:1906)
      ==15070== by 0x4BFF8E: do_io (mt_adaptor.c:439)
      ==15070== by 0x4E36850: start_thread (in /lib64/libpthread-2.12.so)
      ==15070== by 0x58D367C: clone (in /lib64/libc-2.12.so)
      ==15070==
      ==15070== 1,946,648 (1,051,016 direct, 895,632 indirect) bytes in 64,035 blocks are definitely lost in loss record 371 of 371
      ==15070== at 0x4C2677B: calloc (vg_replace_malloc.c:593)
      ==15070== by 0x4C59BB: deserialize_String_vector (zookeeper.jute.c:245)
      ==15070== by 0x4C5AE7: deserialize_GetChildrenResponse (zookeeper.jute.c:874)
      ==15070== by 0x4BEE7E: zookeeper_process (zookeeper.c:1906)
      ==15070== by 0x4BFF8E: do_io (mt_adaptor.c:439)
      ==15070== by 0x4E36850: start_thread (in /lib64/libpthread-2.12.so)
      ==15070== by 0x58D367C: clone (in /lib64/libc-2.12.so)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                phipgao gao fengpu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: