]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix memory leaks in the chcpu
authorjiazhenyuan <jiazhenyuan@uniontech.com>
Mon, 6 Sep 2021 08:50:27 +0000 (16:50 +0800)
committerjiazhenyuan <jiazhenyuan@uniontech.com>
Mon, 6 Sep 2021 08:50:27 +0000 (16:50 +0800)
sys-utils/chcpu.c

index c4e5bc7e297d98152b62c4216c41035ccb12a4b1..527bce5586bc7fc7d174a0d5e662552749810b7e 100644 (file)
@@ -383,6 +383,7 @@ int main(int argc, char *argv[])
                break;
        }
 
+       CPU_FREE(cpu_set);
        ul_unref_path(sys);
 
        return rc == 0 ? EXIT_SUCCESS :