summaryrefslogtreecommitdiff
path: root/upb_context.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-02 18:31:32 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-02 18:31:32 -0700
commitb8481e0e55aebad1d9ffa0f3845609f929bca02f (patch)
tree420b38e6e44abc8e8fed9f692d05df8a7e115256 /upb_context.c
parent6fdf83f59ffc24ed074a93e61efa09fcaee805fa (diff)
A bit more work on generalizing parsing.
Diffstat (limited to 'upb_context.c')
-rw-r--r--upb_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb_context.c b/upb_context.c
index 9fd6cef..e124583 100644
--- a/upb_context.c
+++ b/upb_context.c
@@ -232,7 +232,7 @@ error:
}
bool upb_context_parsefd(struct upb_context *c, struct upb_string *fd_str) {
- google_protobuf_FileDescriptorProto *fd = upb_msg_parse(c->fd_msg, fd_str);
+ google_protobuf_FileDescriptorProto *fd = upb_alloc_and_parse(c->fd_msg, fd_str);
if(!fd) return false;
if(!upb_context_addfd(c, fd)) return false;
c->fd[c->fd_len++] = fd; /* Need to keep a ref since we own it. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback