summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-26 20:30:04 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-26 20:30:04 -0800
commitcb6c34275fab1d91f45061220694e361b7efe04c (patch)
tree9ca11e713299456f6c0de0e1246cfc4cd7440645 /benchmarks
parent9e3f5e343b8a729331dd6448bddb9150ae60d63c (diff)
Fix memory leak in test.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/parsetostruct.upb_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/parsetostruct.upb_table.c b/benchmarks/parsetostruct.upb_table.c
index 5007418..4cf2b71 100644
--- a/benchmarks/parsetostruct.upb_table.c
+++ b/benchmarks/parsetostruct.upb_table.c
@@ -40,7 +40,7 @@ static bool initialize()
upb_string_unref(proto_name);
def = e.ref.msg;
- for(int i = 0; i < 32; i++)
+ for(int i = 0; i < NUM_MESSAGES; i++)
msgs[i] = upb_msg_new(def);
// Read the message data itself.
@@ -55,7 +55,7 @@ static bool initialize()
static void cleanup()
{
- for(int i = 0; i < 32; i++)
+ for(int i = 0; i < NUM_MESSAGES; i++)
upb_msg_unref(msgs[i]);
upb_string_unref(str);
upb_context_unref(c);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback