diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-08-26 12:40:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-08-26 13:31:38 +0200 |
commit | 0c986b2f6add49f4e65779755a359b933f183c0e (patch) | |
tree | 9f04388e5a3cc143776f0e184bc6e44f6e296d3f /trace | |
parent | record: Improve overflow handling (diff) | |
download | rtems-tools-0c986b2f6add49f4e65779755a359b933f183c0e.tar.bz2 |
record: Fix client destruction
Diffstat (limited to 'trace')
-rw-r--r-- | trace/record/record-main-lttng.c | 4 |
1 files 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; } |