diff --git a/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c b/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c index 5be11f1da..be58aaceb 100644 --- a/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c +++ b/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c @@ -159,6 +159,7 @@ int dmeventd_lvm2_command(struct dm_pool *mem, char *buffer, size_t size, dmeventd_lvm2_lock(); if (!dmeventd_lvm2_run(cmd) || !(env = getenv(cmd))) { + dmeventd_lvm2_unlock(); log_error("Unable to find configured command."); return 0; }