Merge pull request #8461 from haberman/ruby-arena-memory-leak

Fixed memory leak of Ruby arena objects.
3.15.x
Joshua Haberman 4 years ago committed by GitHub
commit 1ed9a8b521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ruby/ext/google/protobuf_c/protobuf.c

@ -180,6 +180,7 @@ static void Arena_mark(void *data) {
static void Arena_free(void *data) { static void Arena_free(void *data) {
Arena *arena = data; Arena *arena = data;
upb_arena_free(arena->arena); upb_arena_free(arena->arena);
xfree(arena);
} }
static VALUE cArena; static VALUE cArena;

Loading…
Cancel
Save