aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2009-10-29 10:42:01 -0700
committerRoland Dreier <rolandd@cisco.com>2009-10-29 10:42:01 -0700
commitbdf2299e0c0b41f193955eb5bf10485848effa89 (patch)
tree3cd1ba724bf0d4935f2233d24bb747fcb6c375f4
parent7c9252729a711fb8f21b6d76f816f8a1d5ec1169 (diff)
downloadlibibverbs-bdf2299e0c0b41f193955eb5bf10485848effa89.tar.gz
Fix double free in find_sysfs_devs()
Fix double free of sysfs_dev in find_sysfs_devs if ibv_read_sysfs_file() fails (which is unlikely in practice). Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/init.c b/src/init.c
index 90d4292..fae53be 100644
--- a/src/init.c
+++ b/src/init.c
@@ -128,7 +128,6 @@ static void find_sysfs_devs(void)
sizeof sysfs_dev->ibdev_name) < 0) {
fprintf(stderr, PFX "Warning: no ibdev class attr for '%s'.\n",
dent->d_name);
- free(sysfs_dev);
continue;
}