diff options
Diffstat (limited to 'benchmarks/parsestream.upb.c')
-rw-r--r-- | benchmarks/parsestream.upb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/parsestream.upb.c b/benchmarks/parsestream.upb.c index 0316a86..e9164d0 100644 --- a/benchmarks/parsestream.upb.c +++ b/benchmarks/parsestream.upb.c @@ -39,7 +39,7 @@ static bool initialize() return false; } - def = upb_dyncast_msgdef_const(upb_symtab_lookup(s, MESSAGE_NAME)); + def = upb_dyncast_msgdef_const(upb_symtab_lookup(s, MESSAGE_NAME, &def)); if(!def) { fprintf(stderr, "Error finding symbol '%s'.\n", MESSAGE_NAME); return false; @@ -68,7 +68,7 @@ static bool initialize() static void cleanup() { free(input_str); - upb_def_unref(UPB_UPCAST(def)); + upb_def_unref(UPB_UPCAST(def), &def); upb_decoder_uninit(&decoder); upb_decoderplan_unref(plan); upb_stringsrc_uninit(&stringsrc); |