Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
558e0a6f
Commit
558e0a6f
authored
Feb 21, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix descriptor leak and remove useless code
parent
66438c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
modules/control/telnet.c
modules/control/telnet.c
+3
-14
No files found.
modules/control/telnet.c
View file @
558e0a6f
...
...
@@ -251,20 +251,9 @@ static void Run( intf_thread_t *p_intf )
/* if a new client wants to communicate */
fd
=
net_Accept
(
p_intf
,
p_sys
->
pi_fd
,
p_sys
->
i_clients
>
0
?
0
:
-
1
);
if
(
fd
>
0
)
if
(
fd
!=
-
1
)
{
telnet_client_t
*
cl
=
NULL
;
/* to be non blocking */
#if defined( WIN32 ) || defined( UNDER_CE )
{
unsigned
long
i_dummy
=
1
;
ioctlsocket
(
fd
,
FIONBIO
,
&
i_dummy
);
}
#else
fcntl
(
fd
,
F_SETFL
,
O_NONBLOCK
);
#endif
cl
=
malloc
(
sizeof
(
telnet_client_t
));
telnet_client_t
*
cl
=
malloc
(
sizeof
(
telnet_client_t
));
if
(
cl
)
{
memset
(
cl
,
0
,
sizeof
(
telnet_client_t
)
);
...
...
@@ -279,7 +268,7 @@ static void Run( intf_thread_t *p_intf )
}
else
{
msg_Err
(
p_intf
,
"Out of mem"
);
net_Close
(
fd
);
continue
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment