Skip to content

Commit f48c244

Browse files
authored
Merge pull request #713 from cole-miller/fix-exec-apply-leak
Fix frames leak when VfsPoll fails
2 parents 76f1e7c + 35a3242 commit f48c244

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)