diff options
-rw-r--r-- | apps/app_festival.c | 2 | ||||
-rw-r--r-- | doc/api-1.6.0-changes.odt | bin | 44151 -> 0 bytes | |||
-rw-r--r-- | doc/api-1.6.2-changes.txt | 6 | ||||
-rw-r--r-- | include/asterisk/manager.h | 2 | ||||
-rw-r--r-- | main/asterisk.c | 4 | ||||
-rw-r--r-- | main/bridge.c | 2 |
6 files changed, 7 insertions, 9 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c index 3e2e020b8..715437e7e 100644 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -403,6 +403,7 @@ static int festival_exec(struct ast_channel *chan, const char *vdata) if (serverhost == NULL) { ast_log(LOG_WARNING, "festival_client: gethostbyname failed\n"); ast_config_destroy(cfg); + close(fd); return -1; } memmove(&serv_addr.sin_addr, serverhost->h_addr, serverhost->h_length); @@ -414,6 +415,7 @@ static int festival_exec(struct ast_channel *chan, const char *vdata) if (connect(fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) != 0) { ast_log(LOG_WARNING, "festival_client: connect to server failed\n"); ast_config_destroy(cfg); + close(fd); return -1; } diff --git a/doc/api-1.6.0-changes.odt b/doc/api-1.6.0-changes.odt Binary files differdeleted file mode 100644 index 0f37a33cb..000000000 --- a/doc/api-1.6.0-changes.odt +++ /dev/null diff --git a/doc/api-1.6.2-changes.txt b/doc/api-1.6.2-changes.txt deleted file mode 100644 index 34a3e5fc0..000000000 --- a/doc/api-1.6.2-changes.txt +++ /dev/null @@ -1,6 +0,0 @@ -PBX changes ------------ - * If you use ast_build_timing() in your application, you should start calling - ast_destroy_timing() upon destruction of the structure, to avoid a memory - leak. - diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index 67dcead47..0200f468e 100644 --- a/include/asterisk/manager.h +++ b/include/asterisk/manager.h @@ -54,7 +54,7 @@ - \ref manager.c Main manager code file */ -#define AMI_VERSION "4.0.0" +#define AMI_VERSION "5.0.0" #define DEFAULT_MANAGER_PORT 5038 /* Default port for Asterisk management via TCP */ #define DEFAULT_MANAGER_TLS_PORT 5039 /* Default port for Asterisk management via TCP */ diff --git a/main/asterisk.c b/main/asterisk.c index 73c03a268..4c7abd68e 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -727,7 +727,9 @@ static int swapmode(int *used, int *total) static char *handle_show_sysinfo(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) { uint64_t physmem, freeram; +#if defined(HAVE_SYSINFO) || defined(HAVE_SWAPCTL) uint64_t freeswap = 0; +#endif int nprocs = 0; long uptime = 0; int totalswap = 0; @@ -817,7 +819,7 @@ static char *handle_show_sysinfo(struct ast_cli_entry *e, int cmd, struct ast_cl #if defined(HAVE_SYSINFO) ast_cli(a->fd, " Buffer RAM: %" PRIu64 " KiB\n", ((uint64_t) sys_info.bufferram * sys_info.mem_unit) / 1024); #endif -#if defined(HAVE_SWAPCTL) || defined(HAVE_SYSINFO) +#if defined(HAVE_SYSINFO) || defined(HAVE_SWAPCTL) ast_cli(a->fd, " Total Swap Space: %d KiB\n", totalswap); ast_cli(a->fd, " Free Swap Space: %" PRIu64 " KiB\n\n", freeswap); #endif diff --git a/main/bridge.c b/main/bridge.c index 7a937ea59..88d9e5487 100644 --- a/main/bridge.c +++ b/main/bridge.c @@ -3848,7 +3848,7 @@ void ast_bridge_update_talker_src_video_mode(struct ast_bridge *bridge, struct a data->average_talking_energy = talker_energy; } else if ((data->average_talking_energy < talker_energy) && is_keyframe) { if (data->chan_old_vsrc) { - ast_channel_unref(data->chan_old_vsrc); + data->chan_old_vsrc = ast_channel_unref(data->chan_old_vsrc); } if (data->chan_vsrc) { data->chan_old_vsrc = data->chan_vsrc; |