DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/nfp: fix possible resource leak
@ 2018-04-17  5:59 Yangchao Zhou
  2018-04-17  9:07 ` Alejandro Lucero
  0 siblings, 1 reply; 3+ messages in thread
From: Yangchao Zhou @ 2018-04-17  5:59 UTC (permalink / raw)
  To: dev; +Cc: alejandro.lucero

Signed-off-by: Yangchao Zhou <zhouyates@gmail.com>
---
 drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c
index ad6ce72..f2fcc4a 100644
--- a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c
+++ b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c
@@ -816,6 +816,7 @@ struct nfp6000_area_priv {
 
 	if (fscanf(fp, "0x%lx 0x%lx 0x%lx", &start, &end, &flags) == 0) {
 		printf("error reading resource file for bar size\n");
+		fclose(fp);
 		return -1;
 	}
 
-- 
1.7.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-17 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17  5:59 [dpdk-dev] [PATCH] net/nfp: fix possible resource leak Yangchao Zhou
2018-04-17  9:07 ` Alejandro Lucero
2018-04-17 14:07   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).