1
0
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:
Marian Csontos 2023-11-28 21:41:35 +01:00
parent 22e482d965
commit d1f0b89e65

View File

@ -2047,7 +2047,7 @@ static int _stats_create_region(struct dm_stats *dms, uint64_t *region_id,
(strlen(hist_arg)) ? HISTOGRAM_ARG : "", (strlen(hist_arg)) ? HISTOGRAM_ARG : "",
hist_arg)) < 0) { hist_arg)) < 0) {
log_error(err_fmt, PRECISE_ARG " option."); log_error(err_fmt, PRECISE_ARG " option.");
return 0; goto out;
} }
} else } else
opt_args = dm_strdup(""); opt_args = dm_strdup("");