[clinfo] 02/36: Fix memory leak
Andreas Beckmann
anbe at moszumanska.debian.org
Wed Feb 17 18:32:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository clinfo.
commit 8499e3237b199319b56181d163e00fe6b6706598
Author: Andrey Gursky <andrey.gursky at e-mail.ua>
Date: Wed Oct 28 18:00:34 2015 +0100
Fix memory leak
devs is locally dynamically allocated and must be freed.
---
src/clinfo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/clinfo.c b/src/clinfo.c
index 4cc4218..9598fc7 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -2328,6 +2328,7 @@ void checkNullCtxFromType()
}
printf("%s%s\n", def, strbuf);
}
+ free(devs);
}
/* check the behavior of NULL platform in clGetDeviceIDs (see checkNullGetDevices)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git
More information about the Pkg-opencl-commits
mailing list