diff options
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; } |