[ofa-general] [infiniband-diags] [PATCH] [3/6] fix libibnetdisc API consistency and bugs
Al Chu
chu11 at llnl.gov
Mon Jul 27 10:12:41 PDT 2009
Fix potential memleak in ibnd_discover_fabric error path.
Al
--
Albert Chu
chu11 at llnl.gov
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
-------------- next part --------------
From: Albert Chu <chu11 at llnl.gov>
Date: Thu, 23 Jul 2009 11:58:45 -0700
Subject: [PATCH] Fix potential memleak in ibnd_discover_fabric error path.
Signed-off-by: Albert Chu <chu11 at llnl.gov>
---
infiniband-diags/libibnetdisc/src/ibnetdisc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/infiniband-diags/libibnetdisc/src/ibnetdisc.c b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
index 1f041ac..a942ef4 100644
--- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
+++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
@@ -602,7 +602,7 @@ ibnd_discover_fabric(struct ibmad_port *ibmad_port, int timeout_ms,
return ((ibnd_fabric_t *)fabric);
error:
- free(fabric);
+ ibnd_destroy_fabric(fabric);
return (NULL);
}
--
1.5.4.5
More information about the general
mailing list