mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
Fix a leak in a reporting error path.
This commit is contained in:
parent
012869d6d2
commit
0558b9284e
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.23 -
|
Version 2.02.23 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix a leak in a reporting error path (2.02.19).
|
||||||
|
|
||||||
Version 2.02.22 - 13th February 2007
|
Version 2.02.22 - 13th February 2007
|
||||||
====================================
|
====================================
|
||||||
|
@ -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,
|
if (!(report_handle = report_init(cmd, options, keys, &report_type,
|
||||||
separator, aligned, buffered,
|
separator, aligned, buffered,
|
||||||
headings)))
|
headings)))
|
||||||
return 0;
|
return_0;
|
||||||
|
|
||||||
/* Ensure options selected are compatible */
|
/* Ensure options selected are compatible */
|
||||||
if (report_type & SEGS)
|
if (report_type & SEGS)
|
||||||
@ -295,6 +295,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
|
|||||||
report_type |= PVS;
|
report_type |= PVS;
|
||||||
if ((report_type & LVS) && (report_type & PVS)) {
|
if ((report_type & LVS) && (report_type & PVS)) {
|
||||||
log_error("Can't report LV and PV fields at the same time");
|
log_error("Can't report LV and PV fields at the same time");
|
||||||
|
dm_report_free(report_handle);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user