mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
Don't risk the double free, use switch_safe_free here same as in ~15 lines.
This commit is contained in:
parent
60f5dec57e
commit
3329141e74
@ -2343,7 +2343,7 @@ static char *load_cache_data(http_file_context_t *context, const char *url)
|
|||||||
if ((p = strchr(dext, '?'))) {
|
if ((p = strchr(dext, '?'))) {
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
ext = dext;
|
ext = dext;
|
||||||
} else free(dext);
|
} else switch_safe_free(dext);
|
||||||
}
|
}
|
||||||
|
|
||||||
context->cache_file_base = switch_core_sprintf(context->pool, "%s%s%s", globals.cache_path, SWITCH_PATH_SEPARATOR, digest);
|
context->cache_file_base = switch_core_sprintf(context->pool, "%s%s%s", globals.cache_path, SWITCH_PATH_SEPARATOR, digest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user