wct4xxp: Close a memory leak in the VPM450 error path.
Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> Acked-By: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9539 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
b7cf1d9c02
commit
eba7fe3ca4
@ -511,6 +511,7 @@ struct vpm450m *init_vpm450m(void *wc, int *isalaw, int numspans, const struct f
|
||||
#ifdef CONFIG_4KSTACKS
|
||||
local_irq_restore(flags);
|
||||
#endif
|
||||
vfree(vpm450m->pApiInstance);
|
||||
kfree(vpm450m);
|
||||
kfree(ChipOpen);
|
||||
kfree(ChannelOpen);
|
||||
|
Loading…
Reference in New Issue
Block a user