Skip to content

Commit

Permalink
Merge pull request #5534 from wlemkows/coverity-issues
Browse files Browse the repository at this point in the history
common: fix coverity issue
wlemkows authored Feb 8, 2023

Verified

This commit was signed with the committer’s verified signature.
jschlyter Jakob Schlyter
2 parents eeb79f7 + d1fd190 commit 8d3d848
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/tools/pmempool/common.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2022, Intel Corporation */
/* Copyright 2014-2023, Intel Corporation */

/*
* common.c -- definitions of common functions
@@ -1375,8 +1375,13 @@ util_pool_clear_badblocks(const char *path, int create)
outv_err("clearing bad blocks in the pool set failed -- '%s'",
path);
errno = EIO;
return -1;
ret = -1;
goto err;
}

return 0;
ret = 0;

err:
util_poolset_free(setp);
return ret;
}

0 comments on commit 8d3d848

Please sign in to comment.