diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a0de847880..74a47f54fa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ We use [clang-format](https://clang.llvm.org/docs/ClangFormat.html) code formatter. -Install: `pip install clang` +Install: `conda install clang-tools` - Revision: `10.0.1` - See the default configuration used by dpCtl in `.clang-format`. diff --git a/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h b/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h index 59e33b13d0..32c84e22b6 100644 --- a/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h +++ b/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h @@ -46,6 +46,7 @@ namespace dpctl class DynamicLibHelper final { public: + DynamicLibHelper &operator=(const DynamicLibHelper &) = delete; DynamicLibHelper() = delete; DynamicLibHelper(const DynamicLibHelper &) = delete; DynamicLibHelper(const char *libName, int flag) diff --git a/dpctl-capi/source/dpctl_sycl_program_interface.cpp b/dpctl-capi/source/dpctl_sycl_program_interface.cpp index 52faf48a04..52ad97db46 100644 --- a/dpctl-capi/source/dpctl_sycl_program_interface.cpp +++ b/dpctl-capi/source/dpctl_sycl_program_interface.cpp @@ -269,9 +269,11 @@ DPCTLProgram_CreateFromOCLSource(__dpctl_keep const DPCTLSyclContextRef Ctx, break; case backend::level_zero: std::cerr << "CreateFromSource is not supported in Level Zero.\n"; + delete SyclProgram; return nullptr; default: std::cerr << "CreateFromSource is not supported in unknown backend.\n"; + delete SyclProgram; return nullptr; } }