Fix memory leak in mod_json_cdr

This commit is contained in:
Travis Cross 2014-03-02 22:00:09 +00:00
parent a7bf6f8dc1
commit 75a00bd954
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ static void backup_cdr(cdr_data_t *data)
if (wrote < 0) {
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(data->uuid), SWITCH_LOG_ERROR, "Error writing [%s]\n",path);
}
switch_safe_free(path);
break;
} else {
char ebuf[512] = { 0 };