Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
ef8a91c8
Commit
ef8a91c8
authored
Oct 22, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor memory leak on resource failure case
svn path=/icecast/trunk/icecast/; revision=14032
parent
148af4e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/auth_url.c
src/auth_url.c
+2
-1
No files found.
src/auth_url.c
View file @
ef8a91c8
...
...
@@ -98,6 +98,7 @@ static void auth_url_clear(auth_t *self)
INFO0
(
"Doing auth URL cleanup"
);
url
=
self
->
state
;
self
->
state
=
NULL
curl_easy_cleanup
(
url
->
handle
);
free
(
url
->
username
);
free
(
url
->
password
);
...
...
@@ -478,6 +479,7 @@ int auth_get_url_auth (auth_t *authenticator, config_options_t *options)
authenticator
->
stream_end
=
url_stream_end
;
url_info
=
calloc
(
1
,
sizeof
(
auth_url
));
authenticator
->
state
=
url_info
;
url_info
->
auth_header
=
strdup
(
"icecast-auth-user: 1
\r\n
"
);
url_info
->
timelimit_header
=
strdup
(
"icecast-auth-timelimit:"
);
...
...
@@ -535,7 +537,6 @@ int auth_get_url_auth (auth_t *authenticator, config_options_t *options)
snprintf
(
url_info
->
userpwd
,
len
,
"%s:%s"
,
url_info
->
username
,
url_info
->
password
);
}
authenticator
->
state
=
url_info
;
INFO0
(
"URL based authentication setup"
);
return
0
;
}
...
...
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