From patchwork Wed Jan 6 16:47:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 71360 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o06HUcfE004788 for ; Wed, 6 Jan 2010 17:30:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932314Ab0AFRah (ORCPT ); Wed, 6 Jan 2010 12:30:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932302Ab0AFRag (ORCPT ); Wed, 6 Jan 2010 12:30:36 -0500 Received: from smtp.mujha-vel.cz ([81.30.225.246]:59105 "EHLO smtp.mujha-vel.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932276Ab0AFRa3 (ORCPT ); Wed, 6 Jan 2010 12:30:29 -0500 Received: from [217.66.174.142] (helo=localhost.localdomain) by smtp.mujha-vel.cz with esmtp (Exim 4.63) (envelope-from ) id 1NSZ37-00083G-FU; Wed, 06 Jan 2010 17:47:57 +0100 From: Jiri Slaby To: jbarnes@virtuousgeek.org Cc: linux-kernel@vger.kernel.org, jirislaby@gmail.com, Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH 1/2] media: video/tuner-core, fix memory leak Date: Wed, 6 Jan 2010 17:47:55 +0100 Message-Id: <1262796476-17737-1-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 1.6.5.7 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 5b3eaa1..c4dab6c 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -1078,6 +1078,7 @@ static int tuner_probe(struct i2c_client *client, goto register_client; } + kfree(t); return -ENODEV; case 0x42: case 0x43: