[PATCH] Fix memory leak in isapnp
authorJesper Juhl <jesper.juhl@gmail.com>
Sat, 25 Mar 2006 11:08:12 +0000 (03:08 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:23:00 +0000 (08:23 -0800)
commit656bde5728b824ca23fcab8bc5800b309ea48d64
tree9e570f9e5847a653d8ab11e2653464f5b525cc53
parentbda44e1d168ac76fce5183eb141592fc645c7818
[PATCH] Fix memory leak in isapnp

Spotted by the Coverity checker as bug #666

akpm; there are several other `return 1;'s in there which aren't freeing
`dev'.  (A fix which converts this function to single-exit would be
preferred..)

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pnp/isapnp/core.c