Skip to content

Commit

Permalink
Merge pull request #8461 from haberman/ruby-arena-memory-leak
Browse files Browse the repository at this point in the history
Fixed memory leak of Ruby arena objects.
  • Loading branch information
haberman authored Apr 7, 2021
2 parents 878be35 + 67fee91 commit 1ed9a8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ruby/ext/google/protobuf_c/protobuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ static void Arena_mark(void *data) {
static void Arena_free(void *data) {
Arena *arena = data;
upb_arena_free(arena->arena);
xfree(arena);
}

static VALUE cArena;
Expand Down

0 comments on commit 1ed9a8b

Please sign in to comment.