ChangeSet 1.1325.4.9, 2003/09/23 17:17:48-07:00, chrisw@osdl.org [PATCH] USB: Memory Leaks on Error Paths of usb-midi drivers/usb/class/usb-midi.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/drivers/usb/class/usb-midi.c b/drivers/usb/class/usb-midi.c --- a/drivers/usb/class/usb-midi.c Thu Sep 25 14:31:56 2003 +++ b/drivers/usb/class/usb-midi.c Thu Sep 25 14:31:56 2003 @@ -1750,7 +1750,7 @@ return 0; error_end: - if ( mdevs != NULL && devices > 0 ) { + if ( mdevs != NULL ) { for ( i=0 ; idev_midi );