stream-service: Avoid FD leak during deinitialization
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user