mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-08 00:40:21 +08:00
capture: Resolve failure path memory leak.
This commit is contained in:
1 parent
e681762704
commit
0a0ded702a
1 file changed
+1
@@ -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