diff options
author | Doug Bailey <dbailey@digium.com> | 2012-04-27 19:36:55 +0000 |
---|---|---|
committer | Doug Bailey <dbailey@digium.com> | 2012-04-27 19:36:55 +0000 |
commit | 45a4b3459991f23fc17240886d1435d67ff2e89c (patch) | |
tree | bc15736eceeb33ea57e6f7356b291bb3c678f702 | |
parent | 5ce54e828db58388b4cb515b0fac455056b4726f (diff) |
Assign NULL values to pointers to insure that future kfree calls do not cause errors.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10678 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 0c9ceda..3fad5bb 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -2089,6 +2089,8 @@ static int t4_alloc_channels(struct t4 *wc, struct t4_span *ts, 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; |