[rtems-tools commit] record: Fix client destruction

Sebastian Huber sebh at rtems.org
Mon Aug 26 11:32:02 UTC 2019


Module:    rtems-tools
Branch:    master
Commit:    0c986b2f6add49f4e65779755a359b933f183c0e
Changeset: http://git.rtems.org/rtems-tools/commit/?id=0c986b2f6add49f4e65779755a359b933f183c0e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Aug 26 12:40:53 2019 +0200

record: Fix client destruction

---

 trace/record/record-main-lttng.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/trace/record/record-main-lttng.c b/trace/record/record-main-lttng.c
index f931209..b30306b 100644
--- a/trace/record/record-main-lttng.c
+++ b/trace/record/record-main-lttng.c
@@ -552,6 +552,8 @@ int main( int argc, char **argv )
     }
   }
 
+  rtems_record_client_destroy( &ctx );
+
   for ( i = 0; i < RTEMS_RECORD_CLIENT_MAXIMUM_CPU_COUNT; i++ ) {
     fseek( event_streams[ i ], 0, SEEK_SET );
 
@@ -576,7 +578,5 @@ int main( int argc, char **argv )
   rv = close( fd );
   assert( rv == 0 );
 
-  rtems_record_client_destroy( &ctx );
-
   return 0;
 }




More information about the vc mailing list