diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-11-13 19:46:50 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 12:25:52 -0800 |
commit | 61838261edaf621d1e8ee4ea9d7c052f7d783ca4 (patch) | |
tree | 66044dcc8e633cecb55e78b3e2c2182edd7c00c4 /drivers/staging | |
parent | ebba26f4a8d0c137a2d365b6bded2a0d7fcd1d06 (diff) | |
download | op-kernel-dev-61838261edaf621d1e8ee4ea9d7c052f7d783ca4.zip op-kernel-dev-61838261edaf621d1e8ee4ea9d7c052f7d783ca4.tar.gz |
staging: comedi: fix memory leak
Instead of freeing outBuffer, inBuffer gets freed twice.
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/comedi/drivers/usbdux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/usbdux.c b/drivers/staging/comedi/drivers/usbdux.c index 1f177a6..de784ff 100644 --- a/drivers/staging/comedi/drivers/usbdux.c +++ b/drivers/staging/comedi/drivers/usbdux.c @@ -2295,8 +2295,8 @@ static void tidy_up(struct usbduxsub *usbduxsub_tmp) usbduxsub_tmp->inBuffer = NULL; kfree(usbduxsub_tmp->insnBuffer); usbduxsub_tmp->insnBuffer = NULL; - kfree(usbduxsub_tmp->inBuffer); - usbduxsub_tmp->inBuffer = NULL; + kfree(usbduxsub_tmp->outBuffer); + usbduxsub_tmp->outBuffer = NULL; kfree(usbduxsub_tmp->dac_commands); usbduxsub_tmp->dac_commands = NULL; kfree(usbduxsub_tmp->dux_commands); |