Fix memory leak of test_basic (#943) (#948)

Fix issue https://github.com/KhronosGroup/OpenCL-CTS/issues/943.

Free buffer while verify fail.
This commit is contained in:
Qinyu
2020-10-30 22:49:48 +08:00
committed by GitHub
parent 337db8882a
commit 67ab7a7010

View File

@@ -215,6 +215,8 @@ int test_strided_copy(cl_device_id deviceID, cl_context context, cl_command_queu
sprintf(values + strlen( values), "%2x ", outchar[j]);
sprintf(values + strlen(values), "]");
log_error("%s\n", values);
free(inBuffer);
free(outBuffer);
return -1;
}
}