Skip to content

Commit 35a3242

Browse files
committed
Fix frames leak when VfsPoll fails
VfsPoll can fail to acquire the WAL write lock, and the caller still needs to release the frames of the transaction in this case. Restores the behavior from before the exec_tick rewrite. Signed-off-by: Cole Miller <[email protected]>
1 parent e80eada commit 35a3242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ static int exec_apply(struct exec *req)
467467

468468
rv = VfsPoll(vfs, db->path, &frames, &n);
469469
if (rv != 0) {
470-
return rv;
470+
goto finish;
471471
}
472472
sm_move(&req->sm, EXEC_POLLED);
473473
if (n == 0) {

0 commit comments

Comments
 (0)