Bug 15461

Summary: [cppcheck] found a memory leak in linux-2.6/fs/nfs/nfs4proc.c at line 5111
Product: File System Reporter: Martin Ettl (ettl.martin)
Component: NFSAssignee: Trond Myklebust (trondmy)
Status: CLOSED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6 git head Subsystem:
Regression: No Bisected commit-id:
Attachments: fix

Description Martin Ettl 2010-03-06 20:18:29 UTC
Created attachment 25390 [details]
fix 

during a check of the current git head of the linux kernel with the static code
analysis tool cppcheck
(http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page) the
tool discovered a memory leak in linux-2.6/fs/nfs/nfs4proc.c

Please refer the attached patch, that fixes the issue.

Best regards

Ettl Martin
Comment 1 Trond Myklebust 2010-03-08 20:15:49 UTC
Thanks! This issue was previously noticed by Dan Carpenter in
  http://marc.info/?l=kernel-janitors&m=126787706909463&w=2
so his patch had already been queued up in my merge queue.
Comment 2 Trond Myklebust 2010-04-14 12:16:03 UTC
Fixed in mainline by commit 7dd08a570dcf45d52155996fee688405635ee481 (nfs: fix unlikely memory leak).