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 5b1496e commit 1b865e9
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;
g_autofd int fd = -1;
int fd_in;

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

0 comments on commit 1b865e9

Please sign in to comment.