[Core] Fix possible memory leak in switch_console_complete()

This commit is contained in:
Andrey Volk committed 2021-10-19 20:39:37 +03:00
1 parent 21952f26c1
commit 8201f54a2c
1 file changed
+1
+1
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;
}