From 3a01dac7e392da596c007cd69d089865daf4c50c Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 30 Dec 2020 17:54:41 +0100 Subject: Fixed memory leak in cvec_X_resize and cdeq_X_resize. Removed macros cdeq_size, cdeq_capacity, cdeq_empty. Use the cvec_X_* names instead. --- benchmarks/vector_vs_deque.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks') diff --git a/benchmarks/vector_vs_deque.cpp b/benchmarks/vector_vs_deque.cpp index 6c26a823..c9e612f2 100644 --- a/benchmarks/vector_vs_deque.cpp +++ b/benchmarks/vector_vs_deque.cpp @@ -11,7 +11,7 @@ #include typedef struct {const char* first; int second;} Si; -using_cvec(si, Si, c_default_del, c_no_compare); +using_cvec(si, Si, c_no_compare); cvec_si tm = cvec_inits; void add(cvec_si* tm, const char* s, int n) { Si si = {s, n}; cvec_si_push_back(tm, si); } @@ -48,7 +48,7 @@ void test_vector(const int num_iterations) } clock_t t2 = std::clock(); - add(&tm, "vector::push_front", t2 - t1); + add(&tm, "vector::push_back", t2 - t1); printf("#"); } -- cgit v1.2.3