mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-25 21:59:19 +08:00
capture: Resolve failure path memory leak.
This commit is contained in:
@@ -154,6 +154,7 @@ rtems_capture_print_trace_records ( int total, bool csv )
|
||||
{
|
||||
fprintf (stdout, "error: trace read failed: %s\n", rtems_status_text (sc));
|
||||
rtems_capture_flush (0);
|
||||
free( per_cpu );
|
||||
return;
|
||||
}
|
||||
/* Release the buffer if there are no records to read */
|
||||
|
||||
Reference in New Issue
Block a user