# Memory leaks in the legacy code are excluded
# Other problems besides memory leaks should NOT be excluded for legacy code
+# Ugly memory leak that depends on global variables being used to pass
+# information between routines.
+{
+ nsc_dclm_pbc
+ Memcheck:Leak
+ fun:calloc
+ fun:save_calloc
+ fun:ico_dot_dod
+ fun:make_unsp
+ fun:nsc_dclm_pbc
+}
+
+{
+ ctime_r
+ Memcheck:Leak
+ ...
+ fun:ctime_r
+}
+
{
libz
Memcheck:Cond
fun:inflateInit2_
}
+# OpenMPI
+{
+ MPI_Init/Leak
+ Memcheck:Leak
+ ...
+ fun:PMPI_Init
+}
+{
+ MPI_Finalize/Leak
+ Memcheck:Leak
+ fun:malloc
+ fun:ompi_proc_all
+ ...
+ fun:_ZN3gmx8finalizeEv
+}
+{
+ MPI_Init/Addr4
+ Memcheck:Addr4
+ ...
+ fun:PMPI_Init
+}
+{
+ MPI_Init/Addr8
+ Memcheck:Addr8
+ ...
+ fun:PMPI_Init
+}
+{
+ MPI_Init/sched_setaffinity
+ Memcheck:Param
+ sched_setaffinity(mask)
+ ...
+ fun:PMPI_Init
+}
+{
+ MPI_Init/writev
+ Memcheck:Param
+ writev(vector[...])
+ ...
+ fun:PMPI_Init
+}
+
{
- read_tps_conf
+ gmx_fio_fopen
Memcheck:Leak
...
- fun:read_tps_conf
+ fun:gmx_fio_fopen
+}
+{
+ put_symtab
+ Memcheck:Leak
+ ...
+ fun:put_symtab
+}
+{
+ bTimeSet/tMPI_Thread_mutex_init_once
+ Memcheck:Leak
+ ...
+ fun:tMPI_Thread_mutex_init_once
+ fun:tMPI_Thread_mutex_lock
+ fun:bTimeSet
+}
+{
+ gmx_ffclose/tMPI_Thread_mutex_init_once
+ Memcheck:Leak
+ ...
+ fun:tMPI_Thread_mutex_init_once
+ fun:tMPI_Thread_mutex_lock
+ fun:gmx_ffclose
}
{
obj:*/mdrun*
}
+{
+ strdup/strtod
+ Memcheck:Addr8
+ fun:__GI___strncasecmp_l
+ fun:____strtod_l_internal
+}
+
#MacOS rules
{
fun:__vfprintf
}
+{
+ printf
+ Memcheck:Leak
+ fun:malloc
+ ...
+ fun:vfprintf_l
+}
+
{
strtof
Memcheck:Leak
...
fun:strtof_l
}
+{
+ strtod
+ Memcheck:Leak
+ fun:malloc
+ ...
+ fun:strtod_l
+}
{
scanf
Memcheck:Leak
- fun:malloc
...
fun:__svfscanf_l
}
+{
+ localtime
+ Memcheck:Leak
+ ...
+ fun:localtime
+}
+
{
__cxa_get_globals
Memcheck:Leak