exports: Close mock host fd when destroyed

Previously this was leaked.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2021-07-27 10:19:57 +01:00
committed by Alexander Larsson
parent 4c8264fc0e
commit bca0e65267

View File

@@ -178,6 +178,7 @@ flatpak_exports_new (void)
void
flatpak_exports_free (FlatpakExports *exports)
{
glnx_close_fd (&exports->host_fd);
g_hash_table_destroy (exports->hash);
g_free (exports);
}