Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D3B96200D35 for ; Tue, 24 Oct 2017 05:37:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C91CC160BF0; Tue, 24 Oct 2017 03:37:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1ADEA1609E0 for ; Tue, 24 Oct 2017 05:37:07 +0200 (CEST) Received: (qmail 89276 invoked by uid 500); 24 Oct 2017 03:37:06 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 89265 invoked by uid 99); 24 Oct 2017 03:37:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 03:37:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 91A8D1A1347 for ; Tue, 24 Oct 2017 03:37:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id W2dMiqWhRoRA for ; Tue, 24 Oct 2017 03:37:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 009AC5FB52 for ; Tue, 24 Oct 2017 03:37:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3A286E04F7 for ; Tue, 24 Oct 2017 03:37:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1B57021EE3 for ; Tue, 24 Oct 2017 03:37:01 +0000 (UTC) Date: Tue, 24 Oct 2017 03:37:00 +0000 (UTC) From: "DavidLiu (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-1556) Memory leak reported by valgrind mt version MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Oct 2017 03:37:09 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-1556?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16216247#comment-16216247 ]=20 DavidLiu commented on ZOOKEEPER-1556: ------------------------------------- Use free_String_vector to fix the memory leak > Memory leak reported by valgrind mt version > ------------------------------------------- > > Key: ZOOKEEPER-1556 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1556 > Project: ZooKeeper > Issue Type: Bug > Components: c client > Affects Versions: 3.4.4 > Reporter: Andr=C3=A9 Martin > Priority: Minor > > Valgrind reports the following memory leak when using the c-client (mt): > =3D=3D11674=3D=3D 18 bytes in 9 blocks are indirectly lost in loss record= 14 of 173 > =3D=3D11674=3D=3D at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload= _memcheck-amd64-linux.so) > =3D=3D11674=3D=3D by 0xC8064A: ia_deserialize_string (recordio.c:271) > =3D=3D11674=3D=3D by 0xC81F2E: deserialize_String_vector (zookeeper.ju= te.c:247) > =3D=3D11674=3D=3D by 0xC842F9: deserialize_GetChildrenResponse (zookee= per.jute.c:874) > =3D=3D11674=3D=3D by 0xC7E9F0: zookeeper_process (zookeeper.c:1904) > =3D=3D11674=3D=3D by 0xC7FE5B: do_io (mt_adaptor.c:439) > =3D=3D11674=3D=3D by 0x4E39E99: start_thread (pthread_create.c:308) > =3D=3D11674=3D=3D by 0x5FA6DBC: clone (clone.S:112) > =3D=3D11674=3D=3D=20 > =3D=3D11674=3D=3D 90 (72 direct, 18 indirect) bytes in 49 blocks are defi= nitely lost in loss record 139 of 173 > =3D=3D11674=3D=3D at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload= _memcheck-amd64-linux.so) > =3D=3D11674=3D=3D by 0xC81EEE: deserialize_String_vector (zookeeper.ju= te.c:245) > =3D=3D11674=3D=3D by 0xC842F9: deserialize_GetChildrenResponse (zookee= per.jute.c:874) > =3D=3D11674=3D=3D by 0xC7E9F0: zookeeper_process (zookeeper.c:1904) > =3D=3D11674=3D=3D by 0xC7FE5B: do_io (mt_adaptor.c:439) > =3D=3D11674=3D=3D by 0x4E39E99: start_thread (pthread_create.c:308) > =3D=3D11674=3D=3D by 0x5FA6DBC: clone (clone.S:112) -- This message was sent by Atlassian JIRA (v6.4.14#64029)