Fix memory leak in mod_json_cdr
This commit is contained in:
parent
a7bf6f8dc1
commit
75a00bd954
|
@ -219,6 +219,7 @@ static void backup_cdr(cdr_data_t *data)
|
||||||
if (wrote < 0) {
|
if (wrote < 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(data->uuid), SWITCH_LOG_ERROR, "Error writing [%s]\n",path);
|
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(data->uuid), SWITCH_LOG_ERROR, "Error writing [%s]\n",path);
|
||||||
}
|
}
|
||||||
|
switch_safe_free(path);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
char ebuf[512] = { 0 };
|
char ebuf[512] = { 0 };
|
||||||
|
|
Loading…
Reference in New Issue