[Core] Fix possible memory leak in switch_console_complete()

This commit is contained in:
Andrey Volk 2021-04-06 23:06:45 +03:00
parent 21952f26c1
commit 8201f54a2c
1 changed files with 1 additions and 0 deletions

View File

@ -722,6 +722,7 @@ SWITCH_DECLARE(unsigned char) switch_console_complete(const char *line, const ch
if (switch_core_db_handle(&db) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Database Error\n");
switch_safe_free(dup);
return CC_ERROR;
}