[asterisk-commits] file: trunk r88995 - in /trunk: ./ channels/ configs/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 6 10:29:16 CST 2007
Author: file
Date: Tue Nov 6 10:29:16 2007
New Revision: 88995
URL: http://svn.digium.com/view/asterisk?view=rev&rev=88995
Log:
Merged revisions 88994 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r88994 | file | 2007-11-06 12:24:56 -0400 (Tue, 06 Nov 2007) | 6 lines
Fix improbable but possible memory leaks in chan_zap.
(closes issue #11166)
Reported by: eliel
Patches:
chan_zap.c.patch uploaded by eliel (license 64)
........
Modified:
trunk/ (props changed)
trunk/channels/chan_zap.c
trunk/configs/zapata.conf.sample
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=88995&r1=88994&r2=88995
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Tue Nov 6 10:29:16 2007
@@ -1073,7 +1073,13 @@
}
}
bs = READ_SIZE;
- if (ioctl(fd, ZT_SET_BLOCKSIZE, &bs) == -1) return -1;
+ if (ioctl(fd, ZT_SET_BLOCKSIZE, &bs) == -1) {
+ ast_log(LOG_WARNING, "Unable to set blocksize '%d': %s\n", bs, strerror(errno));
+ x = errno;
+ close(fd);
+ errno = x;
+ return -1;
+ }
return fd;
}
@@ -13216,8 +13222,10 @@
continue;
}
/* if got exception */
- if (fds[0].revents & POLLPRI)
+ if (fds[0].revents & POLLPRI) {
+ ast_free(mybuf);
return -1;
+ }
if (!(fds[0].revents & POLLOUT)) {
ast_debug(1, "write fd not ready on channel %d\n", p->channel);
continue;
Modified: trunk/configs/zapata.conf.sample
URL: http://svn.digium.com/view/asterisk/trunk/configs/zapata.conf.sample?view=diff&rev=88995&r1=88994&r2=88995
==============================================================================
--- trunk/configs/zapata.conf.sample (original)
+++ trunk/configs/zapata.conf.sample Tue Nov 6 10:29:16 2007
@@ -154,7 +154,7 @@
; T305: Wait for DISCONNECT acknowledge (default 30000 ms)
; T308: Wait for RELEASE acknowledge (default 4000 ms)
; T309: Maintain active calls on Layer 2 disconnection (default -1,
- Asterisk clears calls)
+; Asterisk clears calls)
; EuroISDN: 6000 to 12000 ms, according to (N200 + 1) x T200 + 2s
; May vary in other ISDN standards (Q.931 1993 : 90000 ms)
; T313: Wait for CONNECT acknowledge, CPE side only (default 3000 ms)
More information about the asterisk-commits
mailing list