diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-08-07 21:05:27 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-08-07 21:05:27 -0700 |
commit | eb67fb9109a24d866fe81abe4dd221e6fe18416f (patch) | |
tree | d11d169af8ffbe60fd84667b364c0a9f458018b1 /src | |
parent | 8fa6a92f534cb01b6f5b4f48e3982f686d6c3123 (diff) |
Fixed memory leaks in upbc.
Diffstat (limited to 'src')
-rw-r--r-- | src/upb_msg.c | 2 |
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)) { |