Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
0875ed64
Commit
0875ed64
authored
Dec 02, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioscrobbler: Fix socket leaks on error
parent
16ec76db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+2
-0
No files found.
modules/misc/audioscrobbler.c
View file @
0875ed64
...
...
@@ -854,6 +854,7 @@ static void *Run(void *data)
/* If connection fails, we assume we must handshake again */
HandleInterval
(
&
next_exchange
,
&
i_interval
);
b_handshaked
=
false
;
net_Close
(
i_post_socket
);
continue
;
}
...
...
@@ -867,6 +868,7 @@ static void *Run(void *data)
if
(
i_net_ret
<=
0
)
{
/* if we get no answer, something went wrong : try again */
net_Close
(
i_post_socket
);
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