[clinfo] 99/148: Cleanup extensions treatment

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch clinfo
in repository clinfo.

commit a15e672b9530d4b89e72bd2fe8d26ca69ced2770
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Tue Nov 4 18:32:22 2014 +0100

    Cleanup extensions treatment
---
 src/clinfo.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 1e8ecd3..458deaa 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -487,7 +487,7 @@ printDeviceInfo(cl_uint d)
 	cl_uint szels = 3;
 	size_t len;
 
-	char* extensions;
+	char *extensions = NULL;
 
 	struct device_info_checks chk;
 	memset(&chk, 0, sizeof(chk));
@@ -1150,7 +1150,9 @@ printDeviceInfo(cl_uint d)
 		BOOL_PARAM(LINKER_AVAILABLE, "Linker Available");
 
 	// and finally the extensions
-	printf(I1_STR "%s\n", "Device Extensions", extensions); \
+	printf(I1_STR "%s\n", "Device Extensions", extensions);
+	free(extensions);
+	extensions = NULL;
 }
 
 int main(int argc, char *argv[])

-- 
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