]> sourceware.org Git - lvm2.git/commitdiff
dmstats: Fix memory leak on error path 1088425690
authorMarian Csontos <mcsontos@redhat.com>
Tue, 28 Nov 2023 20:41:35 +0000 (21:41 +0100)
committerMarian Csontos <mcsontos@redhat.com>
Tue, 28 Nov 2023 21:00:14 +0000 (22:00 +0100)
libdm/libdm-stats.c

index 3b1fbe8a0f5d1f97c3aeb1fd0379e93767761b27..47f028155ee3e2de0b43447929362537fc97c914 100644 (file)
@@ -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("");
This page took 0.043434 seconds and 5 git commands to generate.