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
2f938b85
Commit
2f938b85
authored
Jul 27, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: set freed pointer to NULL to avoid access-after-free
parent
e900d8e8
Pipeline
#269
failed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/xslt.c
src/xslt.c
+2
-1
No files found.
src/xslt.c
View file @
2f938b85
...
...
@@ -127,9 +127,10 @@ void xslt_shutdown(void) {
static
void
clear_cache_entry
(
size_t
idx
)
{
free
(
cache
[
idx
].
filename
);
cache
[
idx
].
filename
=
NULL
;
if
(
cache
[
idx
].
stylesheet
)
xsltFreeStylesheet
(
cache
[
idx
].
stylesheet
);
cache
[
idx
].
filename
=
NULL
;
cache
[
idx
].
stylesheet
=
NULL
;
}
void
xslt_clear_cache
(
void
)
...
...
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