From d314d6e998b2919f35d8b2e2812d47a10dc415ff Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 4 Apr 2024 14:56:22 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 621978924 --- src/google/protobuf/compiler/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/main.cc b/src/google/protobuf/compiler/main.cc index 9a58bbbed2..2268f61dbb 100644 --- a/src/google/protobuf/compiler/main.cc +++ b/src/google/protobuf/compiler/main.cc @@ -104,7 +104,7 @@ int ProtobufMain(int argc, char* argv[]) { cli.RegisterGenerator("--rust_out", "--rust_opt", &rust_generator, "Generate Rust sources."); #ifdef DISABLE_PROTOC_CONFIG - internal::SetDisableAllowlistInternalOnly(true); + auto cleanup = internal::DisableAllowlistInternalOnly(); #endif // DISABLE_PROTOC_CONFIG return cli.Run(argc, argv); }