document-portal: Fix fd leak

tingping/wmclass
Alexander Larsson 2016-11-11 10:42:07 +01:00
parent c01bbb5466
commit 46889979ea
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ portal_lookup (GDBusMethodInvocation *invocation,
{
const char *filename;
char path_buffer[PATH_MAX + 1];
int fd;
glnx_fd_close int fd = -1;
struct stat st_buf, real_parent_st_buf;
g_auto(GStrv) ids = NULL;
g_autofree char *id = NULL;