From bdf2299e0c0b41f193955eb5bf10485848effa89 Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Thu, 29 Oct 2009 10:42:01 -0700 Subject: [PATCH] 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 Signed-off-by: Roland Dreier --- src/init.c | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.46.0