mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dmstats: Fix memory leak on error path
This commit is contained in:
parent
22e482d965
commit
d1f0b89e65
@ -2047,7 +2047,7 @@ static int _stats_create_region(struct dm_stats *dms, uint64_t *region_id,
|
||||
(strlen(hist_arg)) ? HISTOGRAM_ARG : "",
|
||||
hist_arg)) < 0) {
|
||||
log_error(err_fmt, PRECISE_ARG " option.");
|
||||
return 0;
|
||||
goto out;
|
||||
}
|
||||
} else
|
||||
opt_args = dm_strdup("");
|
||||
|
Loading…
Reference in New Issue
Block a user