[svn-commits] qwell: branch 1.4 r88078 - /branches/1.4/channels/chan_zap.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Nov 1 11:21:23 CDT 2007
Author: qwell
Date: Thu Nov 1 11:21:22 2007
New Revision: 88078
URL: http://svn.digium.com/view/asterisk?view=rev&rev=88078
Log:
Make sure we set the poll fds to NULL after free()ing it.
Part of issue 11017, patch by tzafrir.
Modified:
branches/1.4/channels/chan_zap.c
Modified: branches/1.4/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_zap.c?view=diff&rev=88078&r1=88077&r2=88078
==============================================================================
--- branches/1.4/channels/chan_zap.c (original)
+++ branches/1.4/channels/chan_zap.c Thu Nov 1 11:21:22 2007
@@ -6784,8 +6784,10 @@
/* Lock the interface list */
ast_mutex_lock(&iflock);
if (!pfds || (lastalloc != ifcount)) {
- if (pfds)
+ if (pfds) {
free(pfds);
+ pfds = NULL;
+ }
if (ifcount) {
if (!(pfds = ast_calloc(1, ifcount * sizeof(*pfds)))) {
ast_mutex_unlock(&iflock);
More information about the svn-commits
mailing list