Skip to content

Commit

Permalink
tests: fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
atkassen committed Sep 25, 2024
1 parent b62899e commit 775f015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/gtests/ocl/api/test_engine.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2019-2022 Intel Corporation
* Copyright 2019-2024 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -290,6 +290,8 @@ TEST_P(ocl_engine_test_t, BinaryKernels) {
ASSERT_EQ(dnnl_impl_gpu_mayiuse_ngen_kernels(eng), true);
}
#endif

if (s == dnnl_success) { DNNL_CHECK(dnnl_engine_destroy(eng)); }
}

INSTANTIATE_TEST_SUITE_P(Simple, ocl_engine_test_t,
Expand Down

0 comments on commit 775f015

Please sign in to comment.