From 1e35bbd54e690ff86f6e01e1f4e5857a2ed01da0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 27 Apr 2022 01:39:51 +0200 Subject: [PATCH] Join update thread before bailing out on bad input. --- profiler/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 158a649d..5669bf31 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -381,6 +381,7 @@ int main( int argc, char** argv ) else { fprintf( stderr, "Bad parameter: %s", argv[1] ); + updateThread.join(); exit( 1 ); } argc -= 2;