[svn-commits] dbailey: linux/trunk r10678 - /linux/trunk/drivers/dahdi/wct4xxp/base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Apr 27 14:37:01 CDT 2012
Author: dbailey
Date: Fri Apr 27 14:36:55 2012
New Revision: 10678
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10678
Log:
Assign NULL values to pointers to insure that future kfree calls do not cause errors.
Modified:
linux/trunk/drivers/dahdi/wct4xxp/base.c
Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=10678&r1=10677&r2=10678
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Fri Apr 27 14:36:55 2012
@@ -2089,6 +2089,8 @@
for (i = 0; i < ARRAY_SIZE(ts->chans); ++i) {
kfree(ts->chans[i]);
kfree(ts->ec[i]);
+ ts->chans[i] = NULL;
+ ts->ec[i] = NULL;
}
ts->linemode = linemode;
More information about the svn-commits
mailing list