From 752d6a9d05e261a8970b71929f9ff2e6933cb021 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Tue, 15 Jul 2025 10:18:04 +0200 Subject: [PATCH] Fixed grpc leak detection --- src/memory_leak_debug.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/memory_leak_debug.cpp b/src/memory_leak_debug.cpp index f443376..acfcc5a 100644 --- a/src/memory_leak_debug.cpp +++ b/src/memory_leak_debug.cpp @@ -80,8 +80,11 @@ struct TrackedAllocation printf("%-25s %s (line %lu)\n", file_name ? file_name : line.FileName, s, line.LineNumber); - if (!is_grpc && ((strstr(s, "grpc::") == s) || (strstr(s, "grpc_core::") == s) || (strstr(s, "grpc_init") == s))) { - is_grpc = true; + if (!is_grpc) { + is_grpc = (strstr(s, "grpc::") == s) || + (strstr(s, "grpc_core::") == s) || + (strstr(s, "grpc_event_engine::") == s) || + (strstr(s, "grpc_init") == s); } } }