summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/upb_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_msg.c b/src/upb_msg.c
index c58b470..16c24c0 100644
--- a/src/upb_msg.c
+++ b/src/upb_msg.c
@@ -193,7 +193,7 @@ void *upb_msg_parsenew(struct upb_msgdef *md, struct upb_string *s)
* needs to be freed) iff its set bit is set. */
static void free_value(union upb_value_ptr p, struct upb_msg_fielddef *f)
{
- if(upb_isarray(f)) {
+ if(upb_isstring(f)) {
free((*p.str)->ptr);
free(*p.str);
} else if(upb_issubmsg(f)) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback