diff options
author | Chris Fallin <cfallin@google.com> | 2015-04-13 14:01:54 -0700 |
---|---|---|
committer | Chris Fallin <cfallin@google.com> | 2015-04-13 14:02:43 -0700 |
commit | e9abbd23fbb60da882833e7212345a4250665c92 (patch) | |
tree | dfe352de47cd03a29e2a20c952442cc541b2adeb /ruby/ext | |
parent | be89e626a6d61be50844ba78cfbff857a4c59c3b (diff) |
Fixed issue #283: crash in JSON handler cleanup.
Includes repro test case from @wfarr.
Diffstat (limited to 'ruby/ext')
-rw-r--r-- | ruby/ext/google/protobuf_c/defs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/ext/google/protobuf_c/defs.c b/ruby/ext/google/protobuf_c/defs.c index b39c27f4..9b590a55 100644 --- a/ruby/ext/google/protobuf_c/defs.c +++ b/ruby/ext/google/protobuf_c/defs.c @@ -250,7 +250,7 @@ void Descriptor_free(void* _self) { &self->pb_serialize_handlers); } if (self->json_serialize_handlers) { - upb_handlers_unref(self->pb_serialize_handlers, + upb_handlers_unref(self->json_serialize_handlers, &self->json_serialize_handlers); } xfree(self); |