mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix: set freed pointer to NULL to avoid access-after-free
This commit is contained in:
parent
e900d8e80c
commit
2f938b8500
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user