osm_db_files.c: Fix memory leak when deleting entries from osm db
PATCH 1/1 osm_db_files.c: Fix memory leak when deleting entries from osm db
From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/[email protected]>
The key also should be freed.
--- opensm/osm_db_files.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
opensm/osm_db_files.c +1 -0
@@ -608,6 +608,7 @@ 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 ; }
Signature · 6 lines
1.7.8.2 -- 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