From patchwork Tue Sep 7 14:52:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 161011 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o87EqrJV031388 for ; Tue, 7 Sep 2010 14:52:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757300Ab0IGOwP (ORCPT ); Tue, 7 Sep 2010 10:52:15 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:53480 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757275Ab0IGOwO (ORCPT ); Tue, 7 Sep 2010 10:52:14 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from kliteyn@mellanox.co.il) with SMTP; 7 Sep 2010 17:51:33 +0300 Received: from [10.4.1.29] (10.4.1.29) by mtlmail01.mtl.com (10.0.8.12) with Microsoft SMTP Server id 8.2.254.0; Tue, 7 Sep 2010 17:52:11 +0300 Message-ID: <4C865190.3070904@mellanox.co.il> Date: Tue, 7 Sep 2010 17:52:00 +0300 From: Yevgeny Kliteynik Reply-To: kliteyn@dev.mellanox.co.il User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky , Linux RDMA Subject: [PATCH] opensm/osm_db_files.c: remove bad free() call Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 07 Sep 2010 14:52:54 +0000 (UTC) diff --git a/opensm/opensm/osm_db_files.c b/opensm/opensm/osm_db_files.c index dd9f772..c475004 100644 --- a/opensm/opensm/osm_db_files.c +++ b/opensm/opensm/osm_db_files.c @@ -582,7 +582,6 @@ int osm_db_delete(IN osm_db_domain_t * p_domain, IN char *p_key) p_key, p_domain_imp->file_name, p_prev_val); res = 1; } else { - free(p_key); free(p_prev_val); res = 0; }