Bug 15461 - [cppcheck] found a memory leak in linux-2.6/fs/nfs/nfs4proc.c at line 5111
Summary: [cppcheck] found a memory leak in linux-2.6/fs/nfs/nfs4proc.c at line 5111
Status: CLOSED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: NFS (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Trond Myklebust
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-06 20:18 UTC by Martin Ettl
Modified: 2010-04-14 12:16 UTC (History)
0 users

See Also:
Kernel Version: 2.6 git head
Subsystem:
Regression: No
Bisected commit-id:


Attachments
fix (356 bytes, patch)
2010-03-06 20:18 UTC, Martin Ettl
Details | Diff

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).

Note You need to log in before you can comment on or make changes to this bug.