diff options
Diffstat (limited to 'upb/upb.c')
-rw-r--r-- | upb/upb.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -231,6 +231,10 @@ void upb_arena_uninit(upb_arena *a) { block = next; } + + /* Protect against multiple-uninit. */ + a->cleanup_head = NULL; + a->block_head = NULL; } bool upb_arena_addcleanup(upb_arena *a, upb_cleanup_func *func, void *ud) { |