[media] DVB, DiB9000: Fix leak in dib9000_attach()
authorJesper Juhl <jj@chaosbits.net>
Thu, 7 Apr 2011 19:34:30 +0000 (16:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:45 +0000 (09:28 -0300)
commit451a51b218df9a3a93af9fd71a356cc6043df52a
tree4d950aacb2800d5166c193511ed200c5a9e317a0
parentb7101de3fff596b35e45cd9fb7007caa07e97c9a
[media] DVB, DiB9000: Fix leak in dib9000_attach()

If the second memory allocation in dib9000_attach() fails, we'll leak the
memory allocated by the first.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/dib9000.c