mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
reporter: drop mem on error path
Coverity noticed.
This commit is contained in:
parent
6308a8b06d
commit
49e3fd1ce8
@ -553,6 +553,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
|
||||
lock_global = 1;
|
||||
if (!lock_vol(cmd, VG_GLOBAL, LCK_VG_READ, NULL)) {
|
||||
log_error("Unable to obtain global lock.");
|
||||
dm_report_free(report_handle);
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user