* [PATCH] opensm/osm_db_files.c: In osm_db_delete, don't free p_key
@ 2011-05-27 17:52 Hal Rosenstock
[not found] ` <4DDFE4CC.7000501-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2011-05-27 17:52 UTC (permalink / raw)
To: Alex Netes; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
since it's not malloc'd memory
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] opensm/osm_db_files.c: In osm_db_delete, don't free p_key
[not found] ` <4DDFE4CC.7000501-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2011-07-05 15:57 ` Alex Netes
0 siblings, 0 replies; 2+ messages in thread
From: Alex Netes @ 2011-07-05 15:57 UTC (permalink / raw)
To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Hi Hal,
On 13:52 Fri 27 May , Hal Rosenstock wrote:
>
> since it's not malloc'd memory
>
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-05 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-27 17:52 [PATCH] opensm/osm_db_files.c: In osm_db_delete, don't free p_key Hal Rosenstock
[not found] ` <4DDFE4CC.7000501-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-07-05 15:57 ` Alex Netes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox