Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
91134b75
Commit
91134b75
authored
Jun 06, 2018
by
Philipp Schafft
🦁
Browse files
Fix: Fixed memory leak with new prefixmatch="" attribute of <resource>
parent
819dc9c7
Pipeline
#176
passed with stage
in 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cfgfile.c
View file @
91134b75
...
...
@@ -1956,7 +1956,10 @@ static void _parse_resource(xmlDocPtr doc,
}
temp
=
(
char
*
)
xmlGetProp
(
node
,
XMLSTR
(
"prefixmatch"
));
resource
->
flags
|=
util_str_to_bool
(
temp
)
?
ALIAS_FLAG_PREFIXMATCH
:
0
;
if
(
temp
)
{
resource
->
flags
|=
util_str_to_bool
(
temp
)
?
ALIAS_FLAG_PREFIXMATCH
:
0
;
xmlFree
(
temp
);
}
/* Attach new <resource> as last entry into the global list. */
current
=
configuration
->
resources
;
...
...
Write
Preview
Supports
Markdown
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