1
0
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:
Philipp Schafft 2018-07-27 09:36:08 +00:00
parent e900d8e80c
commit 2f938b8500

View File

@ -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)