All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm/osm_db_files.c: fix small memory leak
@ 2010-09-07 15:05 Yevgeny Kliteynik
       [not found] ` <4C8654C0.7020208-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Yevgeny Kliteynik @ 2010-09-07 15:05 UTC (permalink / raw)
  To: Sasha Khapyorsky, Linux RDMA


Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
---
 opensm/opensm/osm_db_files.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_db_files.c b/opensm/opensm/osm_db_files.c
index c475004..603bcf2 100644
--- a/opensm/opensm/osm_db_files.c
+++ b/opensm/opensm/osm_db_files.c
@@ -175,6 +175,7 @@ int osm_db_init(IN osm_db_t * p_db, IN osm_log_t * p_log)
 			OSM_LOG(p_log, OSM_LOG_ERROR, "ERR 6101: "
 				"Failed to create the db directory:%s\n",
 				p_db_imp->db_dir_name);
+			free(p_db_imp);
 			OSM_LOG_EXIT(p_log);
 			return 1;
 		}
-- 
1.6.2.4

--
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] 3+ messages in thread

end of thread, other threads:[~2010-09-09 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-07 15:05 [PATCH] opensm/osm_db_files.c: fix small memory leak Yevgeny Kliteynik
     [not found] ` <4C8654C0.7020208-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
2010-09-09 14:42   ` Sasha Khapyorsky
2010-09-09 14:47   ` [PATCH] opensm/osm_db_files.c: malloc() return value run-time check Sasha Khapyorsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.