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
1b5572f7
Commit
1b5572f7
authored
Sep 20, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Fixed a memory leak caused by assigning the client's role twice in some cases
parent
9ffd16cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/auth.c
src/auth.c
+1
-1
No files found.
src/auth.c
View file @
1b5572f7
...
...
@@ -365,7 +365,7 @@ static void __handle_auth_client (auth_t *auth, auth_client *auth_user) {
if
(
auth_user
->
client
->
acl
)
acl_release
(
auth_user
->
client
->
acl
);
acl_addref
(
auth_user
->
client
->
acl
=
auth
->
acl
);
if
(
auth
->
role
)
/* TODO: Handle errors here */
if
(
auth
->
role
&&
!
auth_user
->
client
->
role
)
/* TODO: Handle errors here */
auth_user
->
client
->
role
=
strdup
(
auth
->
role
);
}
...
...
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