From cfba746fa87b288094de8c8b26b223f228477a52 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Tue, 20 May 2014 10:06:49 +0200 Subject: [PATCH] Reserve place for 32 modules. --- malloctrace.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/malloctrace.cpp b/malloctrace.cpp index d04b82b..8fc4cbb 100644 --- a/malloctrace.cpp +++ b/malloctrace.cpp @@ -134,6 +134,7 @@ struct ThreadData bool wasInHandler = in_handler; in_handler = true; threadRegistry.addThread(this); + modules.reserve(32); string outputFileName = env("DUMP_MALLOC_TRACE_OUTPUT") + to_string(getpid()) + '.' + to_string(thread_id); out = fopen(outputFileName.c_str(), "wa"); -- 2.7.4