From patchwork Fri May 27 17:52:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 825112 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4RHqmO1019080 for ; Fri, 27 May 2011 17:52:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753980Ab1E0Rwn (ORCPT ); Fri, 27 May 2011 13:52:43 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:44919 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086Ab1E0RwR (ORCPT ); Fri, 27 May 2011 13:52:17 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so1431421wya.19 for ; Fri, 27 May 2011 10:52:17 -0700 (PDT) Received: by 10.227.69.194 with SMTP id a2mr2342087wbj.57.1306518736969; Fri, 27 May 2011 10:52:16 -0700 (PDT) Received: from [192.168.1.100] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id et5sm1350802wbb.67.2011.05.27.10.52.14 (version=SSLv3 cipher=OTHER); Fri, 27 May 2011 10:52:15 -0700 (PDT) Message-ID: <4DDFE4CC.7000501@dev.mellanox.co.il> Date: Fri, 27 May 2011 13:52:12 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH] opensm/osm_db_files.c: In osm_db_delete, don't free p_key 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.6 (demeter2.kernel.org [140.211.167.43]); Fri, 27 May 2011 17:52:48 +0000 (UTC) since it's not malloc'd memory Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_db_files.c b/opensm/osm_db_files.c index 3182da4..e8fd40e 100644 --- a/opensm/osm_db_files.c +++ b/opensm/osm_db_files.c @@ -594,7 +594,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; }