Skip to content

Commit c62a194

Browse files
authored
Fix minor performance issue with leak checker destroy (#401)
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
1 parent 46a558f commit c62a194

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/layers/validation/checkers/basic_leak/zel_basic_leak_checker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ namespace validation_layer
293293
auto &dtors = s.dtors;
294294
int64_t diff = 0;
295295
for (size_t i = 0; i < ctors.size(); i++) {
296-
auto name = ctors[i];
296+
const auto& name = ctors[i];
297297
auto zeCount = counts[name].load();
298298
diff += zeCount;
299299

0 commit comments

Comments
 (0)