[igt-dev] [PATCH i-g-t 1/5] lib/aux: Plug memory leak in __igt_lsof_fds
Petri Latvala
petri.latvala at intel.com
Thu Mar 7 11:24:23 UTC 2019
Add a missing closedir call.
Signed-off-by: Petri Latvala <petri.latvala at intel.com>
---
lib/igt_aux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index ff98d91d..e5d41e32 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -1419,6 +1419,8 @@ again:
free(copy_fd_lnk);
free(fd_lnk);
}
+
+ closedir(dp);
}
/*
--
2.19.1
More information about the igt-dev
mailing list