From 14f4aa1198e44d7e52f378b7475ebab68ee4888d Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Mon, 21 Jan 2013 22:45:59 +0000 Subject: [PATCH] Fix memory leak in nbc init This commit was SVN r27884. --- ompi/mca/coll/libnbc/coll_libnbc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ompi/mca/coll/libnbc/coll_libnbc.h b/ompi/mca/coll/libnbc/coll_libnbc.h index 2946f12570..65b06e7c65 100644 --- a/ompi/mca/coll/libnbc/coll_libnbc.h +++ b/ompi/mca/coll/libnbc/coll_libnbc.h @@ -37,7 +37,11 @@ BEGIN_C_DECLS * still in the cache and second, the tmpbuf used by the schedule must * be attached to the handle that uses this schedule !!!! * I.E., THIS IS EXPERIMENTAL AND MIGHT NOT WORK */ -#define NBC_CACHE_SCHEDULE +/* It also leaks memory because the schedule is never cleaned up when + the communicator is destroyed, so don't use it for now */ +#ifdef NBC_CACHE_SCHEDULE +#undef NBC_CACHE_SCHEDULE +#endif #define NBC_SCHED_DICT_UPPER 1024 /* max. number of dict entries */ #define NBC_SCHED_DICT_LOWER 512 /* nuber of dict entries after wipe, if SCHED_DICT_UPPER is reached */