From 0313826cef64ca89058f32e3c8a2868e8f9e98df Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 6 Feb 2011 12:42:35 -0800 Subject: Benchmarks compile and run again! --- stream/upb_decoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stream/upb_decoder.c') diff --git a/stream/upb_decoder.c b/stream/upb_decoder.c index 588d553..2fadf51 100644 --- a/stream/upb_decoder.c +++ b/stream/upb_decoder.c @@ -389,8 +389,7 @@ void upb_decoder_reset(upb_decoder *d, upb_bytesrc *bytesrc) { d->top->msgdef = d->toplevel_msgdef; // Never want to end top-level message, so treat it like a group. d->top->end_offset = UPB_GROUP_END_OFFSET; - upb_string_unref(d->buf); - d->buf = NULL; + upb_string_recycle(&d->buf); } void upb_decoder_uninit(upb_decoder *d) { -- cgit v1.2.3