From 0a0ded702a2bcd534cf7b1db8dbcdd4ff1cd9e8f Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Tue, 25 Nov 2014 12:50:01 -0600 Subject: capture: Resolve failure path memory leak. --- cpukit/libmisc/capture/capture_support.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/libmisc/capture/capture_support.c b/cpukit/libmisc/capture/capture_support.c index bdfd37b078..a33aa2dcb8 100644 --- a/cpukit/libmisc/capture/capture_support.c +++ b/cpukit/libmisc/capture/capture_support.c @@ -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 */ -- cgit v1.2.3