Skip to content

Commit

Permalink
email: Fix fd leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jsparber committed Oct 29, 2024
1 parent 2f1e4e4 commit 9080d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libportal/email.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ compose_email (EmailCall *call)
for (i = 0; call->attachments[i]; i++)
{
g_autoptr(GError) error = NULL;
int fd;
xdp_autofd int fd = -1;
int fd_in;

fd = g_open (call->attachments[i], O_PATH | O_CLOEXEC);
Expand Down

0 comments on commit 9080d5f

Please sign in to comment.