stream-service: Avoid FD leak during deinitialization

This commit is contained in:
Tobias Brunner committed 2025-03-04 14:41:03 +01:00
1 parent 3b0f260b40
commit 8fc09ae158
1 file changed
+4
@@ -226,6 +226,10 @@ static bool watch(private_stream_service_t *this, int fd, watcher_event_t event)
}
else
{
if (data->fd != -1)
{
close(data->fd);
}
free(data);
}
return keep;