summaryrefslogtreecommitdiff
path: root/upb/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/msg.c')
-rw-r--r--upb/msg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/upb/msg.c b/upb/msg.c
index 517b814..5fa9bc8 100644
--- a/upb/msg.c
+++ b/upb/msg.c
@@ -350,7 +350,6 @@ upb_msgfactory *upb_msgfactory_new(const upb_symtab *symtab) {
upb_msgfactory *ret = upb_gmalloc(sizeof(*ret));
ret->symtab = symtab;
- upb_symtab_ref(ret->symtab, &ret->symtab);
upb_inttable_init(&ret->layouts, UPB_CTYPE_PTR);
upb_inttable_init(&ret->mergehandlers, UPB_CTYPE_CONSTPTR);
@@ -373,7 +372,6 @@ void upb_msgfactory_free(upb_msgfactory *f) {
upb_inttable_uninit(&f->layouts);
upb_inttable_uninit(&f->mergehandlers);
- upb_symtab_unref(f->symtab, &f->symtab);
upb_gfree(f);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback