1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix a leak in a reporting error path.

This commit is contained in:
Alasdair Kergon 2007-02-14 15:18:31 +00:00
parent 012869d6d2
commit 0558b9284e
2 changed files with 3 additions and 1 deletions

View File

@ -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
====================================

View File

@ -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;
}