This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master
in repository gfs2-utils.
commit 08c1fd6f23d773ebafbf8ec5d645626c061c6615
Author: Andrew Price <anprice(a)redhat.com>
Date: Wed Mar 7 11:50:33 2018 +0000
glocktop: Fix memory leak in show_inode
Spotted by coverity.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/glocktop/glocktop.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gfs2/glocktop/glocktop.c b/gfs2/glocktop/glocktop.c
index 45d8c49..0305d3d 100644
--- a/gfs2/glocktop/glocktop.c
+++ b/gfs2/glocktop/glocktop.c
@@ -625,8 +625,10 @@ static const char *show_inode(const char *id, int fd, unsigned long
long block)
break;
/* Stop at the root inode */
if (ip->i_di.di_num.no_addr ==
- parent->i_di.di_num.no_addr)
+ parent->i_di.di_num.no_addr) {
+ inode_put(&parent);
break;
+ }
inode_put(&ip);
ip = parent;
dirarray[subdepth++] = parent->i_di.di_num.no_addr;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date