Skip to content

Commit ae798ae

Browse files
committed
common: fix coverity issue
1 parent 8d3d848 commit ae798ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libpmempool/feature.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ poolset_open(const char *path, int rdonly)
178178

179179
/* open a memory pool */
180180
unsigned flags = get_pool_open_flags(set, rdonly);
181-
if (util_pool_open_nocheck(set, flags))
181+
if (util_pool_open_nocheck(set, flags)) {
182+
set = NULL;
182183
goto err_open;
184+
}
183185

184186
/* map all headers and check features */
185187
for (unsigned r = 0; r < set->nreplicas; ++r) {

0 commit comments

Comments
 (0)