Skip to content

Commit

Permalink
Pacify address sanitizer on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
isanych committed Feb 7, 2025
1 parent f031078 commit daaac94
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/google/protobuf/dynamic_message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,7 @@ class DynamicMessage final : public Message {
// class's memory is allocated via the global operator new. Thus, we need to
// manually call the global operator delete. Calling the destructor is taken
// care of for us. This makes DynamicMessage compatible with -fsized-delete.
// It doesn't work for MSVC though.
#ifndef _MSC_VER
static void operator delete(void* ptr) { ::operator delete(ptr); }
#endif // !_MSC_VER
#endif

private:
Expand Down

0 comments on commit daaac94

Please sign in to comment.