Skip to content

Commit

Permalink
Automated rollback of commit 3fec30f.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 546409814
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Jul 7, 2023
1 parent 3fec30f commit 51f79d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/google/protobuf/metadata_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ class PROTOBUF_EXPORT InternalMetadata {

template <typename T>
PROTOBUF_NOINLINE void DeleteOutOfLineHelper() {
ABSL_DCHECK(!arena());
delete PtrValue<Container<T>>();
#ifndef NDEBUG
ptr_ = 0;
#endif // NDEBUG
// TODO(b/188560391): Determine if this branch is needed.
if (!arena()) {
delete PtrValue<Container<T>>();
ptr_ = 0;
}
}

template <typename T>
Expand Down

0 comments on commit 51f79d4

Please sign in to comment.