Skip to contentSkip to conversation

opensm/osm_db_files.c: In osm_db_delete, don't free p_key

PATCH In review Hal Rosenstock 2 participants 2 messages May 27, 2011 – Jul 5, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_db_files.c: In osm_db_delete, don't free p_key

since it's not malloc'd memory

---

opensm/osm_db_files.c +0 -1
index 3182da4..e8fd40e 100644
@@ -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;
 		}

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4DDFE4CC.7000501-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org