From b8481e0e55aebad1d9ffa0f3845609f929bca02f Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 2 Jul 2009 18:31:32 -0700 Subject: A bit more work on generalizing parsing. --- upb_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upb_context.c') 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. */ -- cgit v1.2.3