From patchwork Thu Dec 31 11:47:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Lavra X-Patchwork-Id: 70359 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 nBVBkOsf016579 for ; Thu, 31 Dec 2009 11:46:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750751AbZLaLqX (ORCPT ); Thu, 31 Dec 2009 06:46:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750747AbZLaLqX (ORCPT ); Thu, 31 Dec 2009 06:46:23 -0500 Received: from cp-out10.libero.it ([212.52.84.110]:49398 "EHLO cp-out10.libero.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbZLaLqW (ORCPT ); Thu, 31 Dec 2009 06:46:22 -0500 Received: from [151.83.159.146] (151.83.159.146) by cp-out10.libero.it (8.5.107) id 4B326F6900836642 for linux-media@vger.kernel.org; Thu, 31 Dec 2009 12:46:21 +0100 Subject: [PATCH] em28xx-dvb: fix memleak in dvb_fini() From: Francesco Lavra To: linux-media@vger.kernel.org Date: Thu, 31 Dec 2009 12:47:11 +0100 Message-Id: <1262260031.4401.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1-1mdk Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c 2009-12-31 12:23:53.000000000 +0100 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c 2009-12-31 12:23:56.000000000 +0100 @@ -607,6 +607,7 @@ static int dvb_fini(struct em28xx *dev) if (dev->dvb) { unregister_dvb(dev->dvb); + kfree(dev->dvb); dev->dvb = NULL; }