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

pvscan: free unused device_id

Fix memleak in function.
This commit is contained in:
Zdenek Kabelac 2022-12-20 14:17:34 +01:00
parent 8f091d3798
commit edd6d84159

View File

@ -1441,6 +1441,8 @@ static void _warn_excluded_root(struct cmd_context *cmd, struct device *dev)
log_warn("WARNING: no autoactivation for %s: system.devices %s current %s.",
dev_name(dev), du->idname, cur_idname ?: "missing device id");
free((void*) cur_idname);
}
static int _pvscan_cache_args(struct cmd_context *cmd, int argc, char **argv,