diff --git a/spa/plugins/support/loop.c b/spa/plugins/support/loop.c index 11c3fa222..6b8010af3 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -922,6 +922,8 @@ error_exit_free: free(source); errno = -res; error_exit: + if (close) + spa_system_close(impl->system, fd); return NULL; }