[ethtool] 13/20: ethtool: fix leakage of efeatures resources in do_sfeatures
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Mon Oct 17 04:09:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository ethtool.
commit f237896c9d8e56343d9ac382c8e7e89cd4e4e846
Author: John W. Linville <linville at tuxdriver.com>
Date: Fri Sep 30 14:50:26 2016 -0400
ethtool: fix leakage of efeatures resources in do_sfeatures
Coverity issue: 1363122
Fixes: 6042804cf6ecc ("Change -k/-K options to use ETHTOOL_{G,S}FEATURES")
Signed-off-by: John W. Linville <linville at tuxdriver.com>
Reviewed-by: Greg Rose <grose at lightfleet.com>
---
ethtool.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ethtool.c b/ethtool.c
index a5cd85e..c89f446 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -2430,6 +2430,8 @@ static int do_sfeatures(struct cmd_context *ctx)
err:
free(defs);
+ if (efeatures)
+ free(efeatures);
return rc;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/ethtool.git
More information about the Kernel-svn-changes
mailing list