From 686ebd4a893d2e583d0cf11bd9f77681dbf0b21c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 21 Jun 2013 16:58:38 +0100 Subject: [PATCH] cairo-perf-print: Do not free the uninitialised histogram Signed-off-by: Chris Wilson --- perf/cairo-perf-print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perf/cairo-perf-print.c b/perf/cairo-perf-print.c index 58210b88d..d7ae1311e 100644 --- a/perf/cairo-perf-print.c +++ b/perf/cairo-perf-print.c @@ -107,7 +107,8 @@ report_print (const cairo_perf_report_t *report, test->stats.iterations, test->samples_count); } - _cairo_histogram_fini (&h); + if (show_histogram) + _cairo_histogram_fini (&h); } int