More efficient but still not fix issue

This commit is contained in:
Baroukh Ovadia 2021-12-05 06:02:35 +00:00
parent d21aaf600f
commit 9dcffd7273
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi
size = switch_file_get_size(fd);
if (size) {
contents = malloc(size);
contents = apr_palloc(pool,size);
switch_file_read(fd, (void *) contents, &size);
} else {
switch_safe_free(file);