summaryrefslogtreecommitdiff
path: root/src/upb_mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_mm.c')
-rw-r--r--src/upb_mm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upb_mm.c b/src/upb_mm.c
index 212c2a2..cad1158 100644
--- a/src/upb_mm.c
+++ b/src/upb_mm.c
@@ -24,6 +24,7 @@ void upb_msg_destroy(struct upb_msg *msg) {
if(!upb_msg_isset(msg, f) || !upb_field_ismm(f)) continue;
upb_mm_destroy(upb_msg_getptr(msg, f), upb_field_ptrtype(f));
}
+ upb_msgdef_unref(msg->def);
free(msg);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback