diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2009-10-29 10:42:01 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2009-10-29 10:42:01 -0700 |
commit | bdf2299e0c0b41f193955eb5bf10485848effa89 (patch) | |
tree | 3cd1ba724bf0d4935f2233d24bb747fcb6c375f4 | |
parent | 7c9252729a711fb8f21b6d76f816f8a1d5ec1169 (diff) | |
download | libibverbs-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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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; } |