Skip to content

Commit 32ff113

Browse files
committed
Fix fd leak
1 parent 5fd7b53 commit 32ff113

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zathura/landlock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ void landlock_restrict_write(void) {
118118
g_autofree char* data_path = girara_get_xdg_path(XDG_DATA);
119119
int fd = open(data_path, O_PATH | O_CLOEXEC | O_DIRECTORY);
120120
landlock_write_fd(fd);
121+
close(fd);
121122
}

0 commit comments

Comments
 (0)