1
0
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:
Zdenek Kabelac 2014-11-13 17:39:22 +01:00
parent 6308a8b06d
commit 49e3fd1ce8

View File

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