Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261631AbUD3Wbn (ORCPT ); Fri, 30 Apr 2004 18:31:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261661AbUD3Wbn (ORCPT ); Fri, 30 Apr 2004 18:31:43 -0400 Received: from smtp3.Stanford.EDU ([171.67.16.138]:15080 "EHLO smtp3.Stanford.EDU") by vger.kernel.org with ESMTP id S261631AbUD3Wbk (ORCPT ); Fri, 30 Apr 2004 18:31:40 -0400 Date: Fri, 30 Apr 2004 15:31:36 -0700 (PDT) From: Junfeng Yang To: Dave Kleikamp , Linux Kernel Mailing List , , , Madanlal S Musuvathi , "David L. Dill" Subject: [CHECKER] Memory Leak on commonly executed path in jfs_link (JFS 2.4, kernel 2.4.19) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 754 Lines: 30 get_UCSname is a memory allocation function. Should call free_UCSname(&dname) to free the allocated memory int jfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) { .... ---> if ((rc = get_UCSname(&dname, dentry, JFS_SBI(ip->i_sb)->nls_tab))) goto out; if ((rc = dtSearch(dir, &dname, &ino, &btstack, JFS_CREATE))) goto out; .... out: txEnd(tid); up(&JFS_IP(dir)->commit_sem); up(&JFS_IP(ip)->commit_sem); jfs_info("jfs_link: rc:%d", rc); return rc; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/