projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eed564
)
Fix memory leak spotted by Nicolas Kaiser in the staging sources.
author
Ian Abbott
<abbotti@mev.co.uk>
Mon, 15 Nov 2010 10:25:43 +0000
(10:25 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Mon, 15 Nov 2010 10:25:43 +0000
(10:25 +0000)
comedi/drivers/usbdux.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/usbdux.c
b/comedi/drivers/usbdux.c
index c547a571ab6cb2363d2bf68cab7a3ae7bc921eb6..8d99c47e7a8f37f7fc03261de1cecc1d5de9c016 100644
(file)
--- a/
comedi/drivers/usbdux.c
+++ b/
comedi/drivers/usbdux.c
@@
-2294,9
+2294,9
@@
static void tidy_up(usbduxsub_t * usbduxsub_tmp)
kfree(usbduxsub_tmp->insnBuffer);
usbduxsub_tmp->insnBuffer = NULL;
}
- if (usbduxsub_tmp->
in
Buffer) {
- kfree(usbduxsub_tmp->
in
Buffer);
- usbduxsub_tmp->
in
Buffer = NULL;
+ if (usbduxsub_tmp->
out
Buffer) {
+ kfree(usbduxsub_tmp->
out
Buffer);
+ usbduxsub_tmp->
out
Buffer = NULL;
}
if (usbduxsub_tmp->dac_commands) {
kfree(usbduxsub_tmp->dac_commands);