mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 18:55:19 +03:00
dmsetup: always initialise 'dms' in _stats_update_file()
This commit is contained in:
parent
d28a50ec76
commit
c713745314
@ -5650,8 +5650,8 @@ static int _stats_update_file(CMD_ARGS)
|
||||
int foreground = _switches[FOREGROUND_ARG];
|
||||
int verbose = _switches[VERBOSE_ARG];
|
||||
char *path, *abspath = NULL;
|
||||
struct dm_stats *dms = NULL;
|
||||
dm_filemapd_mode_t mode;
|
||||
struct dm_stats *dms;
|
||||
int fd = -1;
|
||||
|
||||
|
||||
@ -5764,7 +5764,6 @@ bad:
|
||||
if ((fd > -1) && close(fd))
|
||||
log_error("Error closing %s", path);
|
||||
|
||||
if (dms)
|
||||
dm_stats_destroy(dms);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user