Skip to content

Commit d21aaf6

Browse files
committed
STILL FAIL
1 parent 34f8055 commit d21aaf6

File tree

1 file changed

+3
-2
lines changed
  • src/mod/applications/mod_http_cache

1 file changed

+3
-2
lines changed

src/mod/applications/mod_http_cache/gcs.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi
156156

157157
/* check if environment variables set the keys */
158158
if (!zstr(envfile)) {
159-
file = switch_core_strdup(pool, envfile);
159+
file = strdup(envfile);
160160
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO,
161161
// "Using GOOGLE_APPLICATION_CREDENTIALS environment variables for GCS access on profile \"%s\"\n", profile->name);
162162
} else {
@@ -194,6 +194,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi
194194
if (status != SWITCH_STATUS_SUCCESS) {
195195
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERR, "Could not close credencial file\n", profile->bytes_per_block);
196196
switch_safe_free(file);
197+
free(contents);
197198
return status;
198199
}
199200
json = cJSON_Parse(contents);
@@ -218,7 +219,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi
218219
strcpy(profile->region, jsonstr);
219220
}
220221
cJSON_Delete(json);
221-
free(contents);
222+
switch_safe_free(contents);
222223
} else {
223224
switch_xml_t private_key = switch_xml_child(xml, "private_key");
224225
switch_xml_t private_key_id = switch_xml_child(xml, "private_key_id");

0 commit comments

Comments
 (0)