From d1ce4a44cab69be9fd27fd7feb0ed05f40c2d7ca Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 12 Apr 2007 05:02:57 +0000 Subject: [PATCH] Fix small memory leak (only happens in debug mode). This commit was SVN r14328. --- orte/mca/gpr/replica/functional_layer/gpr_replica_put_get_fn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/orte/mca/gpr/replica/functional_layer/gpr_replica_put_get_fn.c b/orte/mca/gpr/replica/functional_layer/gpr_replica_put_get_fn.c index 883075e1e6..a6d77541d7 100644 --- a/orte/mca/gpr/replica/functional_layer/gpr_replica_put_get_fn.c +++ b/orte/mca/gpr/replica/functional_layer/gpr_replica_put_get_fn.c @@ -139,6 +139,7 @@ int orte_gpr_replica_put_fn(orte_gpr_addr_mode_t addr_mode, for (i=0; i < num_tokens; i++) { orte_gpr_replica_dict_reverse_lookup(&tmp, seg, token_itags[i]); opal_output(0, "\t%s", tmp); + free(tmp); /* We all enjoy allocating and releasing memory all over the code isn't it ? */ } }