diff options
Diffstat (limited to 'upb/pb')
-rw-r--r-- | upb/pb/glue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/upb/pb/glue.c b/upb/pb/glue.c index dfd9e88..6b52435 100644 --- a/upb/pb/glue.c +++ b/upb/pb/glue.c @@ -89,6 +89,8 @@ void upb_read_descriptor(upb_symtab *symtab, const char *str, size_t len, if (upb_ok(status)) upb_symtab_add(symtab, defs, n, status); + for(int i = 0; i < n; i++) upb_def_unref(defs[i]); + upb_descreader_uninit(&r); upb_stringsrc_uninit(&strsrc); upb_decoder_uninit(&d); |