make msan happy with the arena code

Clear a field that we were missing in one of the constructor paths

PiperOrigin-RevId: 476440650
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent e76dc4ac8a
commit 6a625a6275
  1. 1
      upb/arena.c

@ -186,6 +186,7 @@ upb_Arena* upb_Arena_Init(void* mem, size_t n, upb_alloc* alloc) {
a->head.ptr = mem;
a->head.end = UPB_PTR_AT(mem, n - sizeof(*a), char);
a->freelist = NULL;
a->freelist_tail = NULL;
a->cleanup_metadata = upb_cleanup_metadata(NULL, true);
return a;

Loading…
Cancel
Save