diff --git a/WHATS_NEW b/WHATS_NEW index b7fc22b1f..e7a291f96 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.23 - ==================================== + Fix a leak in a reporting error path (2.02.19). Version 2.02.22 - 13th February 2007 ==================================== diff --git a/tools/reporter.c b/tools/reporter.c index dd27c2714..bdf4adfad 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -286,7 +286,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, if (!(report_handle = report_init(cmd, options, keys, &report_type, separator, aligned, buffered, headings))) - return 0; + return_0; /* Ensure options selected are compatible */ if (report_type & SEGS) @@ -295,6 +295,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type |= PVS; if ((report_type & LVS) && (report_type & PVS)) { log_error("Can't report LV and PV fields at the same time"); + dm_report_free(report_handle); return 0; }