diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-08-04 17:21:24 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-08-04 17:21:24 -0700 |
commit | 6981e468a3234b3f5439dec8178703a6364cfe03 (patch) | |
tree | ea4d4059344e45ca3181b3bf56a28e3418366561 /upb/pb/glue.c | |
parent | c2c853fa212adcdc29dae4f4d01d6ac907d60c58 (diff) |
More work on Lua extension, and consequent core refactoring.
Diffstat (limited to 'upb/pb/glue.c')
-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); |