Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 55702 invoked from network); 23 Feb 2010 01:47:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2010 01:47:48 -0000 Received: (qmail 58987 invoked by uid 500); 23 Feb 2010 01:47:48 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 58952 invoked by uid 500); 23 Feb 2010 01:47:48 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 58919 invoked by uid 99); 23 Feb 2010 01:47:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 01:47:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 01:47:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 178F529A0036 for ; Mon, 22 Feb 2010 17:47:28 -0800 (PST) Message-ID: <346433450.451541266889648095.JavaMail.jira@brutus.apache.org> Date: Tue, 23 Feb 2010 01:47:28 +0000 (UTC) From: "Christian Kunz (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-464) Memory leaks in libhdfs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837036#action_12837036 ] Christian Kunz commented on HDFS-464: ------------------------------------- +1 for hdfs-464.rel20.patch except the following section should be deleted (this is when USE_UUGI is not defined, which does not happen) {code} @@ -276,12 +281,14 @@ hdfsFS hdfsConnectAsUser(const char* host, tPort port, const char *user , const destroyLocalReference(env, jGroups); } destroyLocalReference(env, jUgi); + destroyLocalReference(env, jAttrString); return NULL; } destroyLocalReference(env, jUserString); destroyLocalReference(env, jGroups); destroyLocalReference(env, jUgi); + destroyLocalReference(env, jAttrString); } #endif //Check what type of FileSystem the caller wants... {code} > Memory leaks in libhdfs > ----------------------- > > Key: HDFS-464 > URL: https://issues.apache.org/jira/browse/HDFS-464 > Project: Hadoop HDFS > Issue Type: Bug > Components: contrib/libhdfs > Affects Versions: 0.20.1 > Reporter: Christian Kunz > Assignee: Christian Kunz > Priority: Blocker > Fix For: 0.21.0, 0.22.0 > > Attachments: HADOOP-6034.patch, HDFS-464.patch, hdfs-464.rel20.patch, patch.HADOOP-6034, patch.HADOOP-6034.0.18 > > > hdfsExists does not call destroyLocalReference for jPath anytime, > hdfsDelete does not call it when it fails, and > hdfsRename does not call it for jOldPath and jNewPath when it fails -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.