From cb6c34275fab1d91f45061220694e361b7efe04c Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 26 Nov 2009 20:30:04 -0800 Subject: Fix memory leak in test. --- benchmarks/parsetostruct.upb_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks') 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); -- cgit v1.2.3