We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eeb79f7 + d1fd190 commit 8d3d848Copy full SHA for 8d3d848
src/tools/pmempool/common.c
@@ -1,5 +1,5 @@
1
// SPDX-License-Identifier: BSD-3-Clause
2
-/* Copyright 2014-2022, Intel Corporation */
+/* Copyright 2014-2023, Intel Corporation */
3
4
/*
5
* common.c -- definitions of common functions
@@ -1375,8 +1375,13 @@ util_pool_clear_badblocks(const char *path, int create)
1375
outv_err("clearing bad blocks in the pool set failed -- '%s'",
1376
path);
1377
errno = EIO;
1378
- return -1;
+ ret = -1;
1379
+ goto err;
1380
}
1381
- return 0;
1382
+ ret = 0;
1383
+
1384
+err:
1385
+ util_poolset_free(setp);
1386
+ return ret;
1387
0 commit comments