From patchwork Fri Dec 4 13:05:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jari Vanhala X-Patchwork-Id: 64849 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB4D5Nge032381 for ; Fri, 4 Dec 2009 13:05:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756285AbZLDNFQ (ORCPT ); Fri, 4 Dec 2009 08:05:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756337AbZLDNFQ (ORCPT ); Fri, 4 Dec 2009 08:05:16 -0500 Received: from smtp.nokia.com ([192.100.105.134]:60134 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756285AbZLDNFP (ORCPT ); Fri, 4 Dec 2009 08:05:15 -0500 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB4D5GZG009487; Fri, 4 Dec 2009 07:05:19 -0600 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Dec 2009 15:05:17 +0200 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Dec 2009 15:05:17 +0200 Received: from localhost.localdomain (trdhcp147136.ntc.nokia.com [172.22.147.136]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB4D5EEo009801; Fri, 4 Dec 2009 15:05:16 +0200 From: Jari Vanhala To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, ext-jari.vanhala@nokia.com Subject: [PATCH] Input: Force Feedback core memory leak Date: Fri, 4 Dec 2009 15:05:14 +0200 Message-Id: <1259931914-6228-2-git-send-email-ext-jari.vanhala@nokia.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1259931914-6228-1-git-send-email-ext-jari.vanhala@nokia.com> References: <1259931914-6228-1-git-send-email-ext-jari.vanhala@nokia.com> X-OriginalArrivalTime: 04 Dec 2009 13:05:17.0370 (UTC) FILETIME=[6D0119A0:01CA74E2] X-Nokia-AV: Clean Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c index 3d7816c..d310a97 100644 --- a/drivers/input/ff-core.c +++ b/drivers/input/ff-core.c @@ -367,6 +367,7 @@ void input_ff_destroy(struct input_dev *dev) if (dev->ff->destroy) dev->ff->destroy(dev->ff); kfree(dev->ff->private); + kfree(dev->ff->effects); kfree(dev->ff); dev->ff = NULL; }