plugins: handle some fd allocation errors

This commit is contained in:
Wim Taymans 2026-05-05 11:36:45 +02:00
parent 09dda9e4e0
commit 96594d6716
9 changed files with 20 additions and 0 deletions

View file

@ -2089,6 +2089,10 @@ impl_init(const struct spa_handle_factory *factory,
this->timerfd = spa_system_timerfd_create(this->data_system,
CLOCK_MONOTONIC, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK);
if (this->timerfd < 0) {
res = this->timerfd;
goto fail;
}
return 0;