pnp: avoid a small unlikely memory leak in proc_read_escd()
authorJesper Juhl <jesper.juhl@gmail.com>
Wed, 17 Oct 2007 06:26:56 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:51 +0000 (08:42 -0700)
commita8b0ac0873cd911b3bf3d6e2db98f80d0b158d56
tree4518c45d295a8668e768a648f6fc5cc71f9d9878
parent5f149cf0ac2ba6c23d77e39fe03290535d13f13d
pnp: avoid a small unlikely memory leak in proc_read_escd()

There's a small and unlikely memory leak in
drivers/pnp/pnpbios/proc.c::proc_read_escd().  It's inside a sanity check,
so it probably won't trigger often (if at all), however it *is* a potential
leak and it's easy to avoid, so let's just fix it :)

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pnp/pnpbios/proc.c