summaryrefslogtreecommitdiff
path: root/upb/upb.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/upb.c')
-rw-r--r--upb/upb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/upb/upb.c b/upb/upb.c
index 72e6fdb..c24ac04 100644
--- a/upb/upb.c
+++ b/upb/upb.c
@@ -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) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback