capture: Resolve failure path memory leak.

This commit is contained in:
Jennifer Averett
2014-11-25 12:50:17 -06:00
parent e681762704
commit 0a0ded702a
+1
View File
@@ -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 */