diff --git a/src/slurmctld/agent.c b/src/slurmctld/agent.c index 26e08bea465bcddcb9f86da6e5e70d31cdda6a93..fc38b9a75960fa797f70c9d9cd6a5541b6cf0578 100644 --- a/src/slurmctld/agent.c +++ b/src/slurmctld/agent.c @@ -1026,7 +1026,7 @@ static void _queue_agent_retry(agent_info_t * agent_info_ptr, int count) queued_req_ptr->last_attempt = time(NULL); slurm_mutex_lock(&retry_mutex); if (retry_list == NULL) { - retry_list = list_create(&_list_delete_retry); + retry_list = list_create(_list_delete_retry); if (retry_list == NULL) fatal("list_create failed"); } @@ -1137,7 +1137,7 @@ void agent_queue_request(agent_arg_t *agent_arg_ptr) slurm_mutex_lock(&retry_mutex); if (retry_list == NULL) { - retry_list = list_create(&_list_delete_retry); + retry_list = list_create(_list_delete_retry); if (retry_list == NULL) fatal("list_create failed"); } @@ -1321,7 +1321,7 @@ extern void mail_job_info (struct job_record *job_ptr, uint16_t mail_type) slurm_mutex_lock(&mail_mutex); if (!mail_list) { - mail_list = list_create(&_mail_free); + mail_list = list_create(_mail_free); if (!mail_list) fatal("list_create failed"); } diff --git a/src/slurmctld/controller.c b/src/slurmctld/controller.c index 22ba49ab69e0ab598c61b43495807e0bed8bed00..896f4225256a6ff9d1f3a0e4b3b5a876c6dbd003 100644 --- a/src/slurmctld/controller.c +++ b/src/slurmctld/controller.c @@ -111,7 +111,7 @@ * MEM_LEAK_TEST to 0 afterwards for best system response (non-seamless * backup controller use). \**************************************************************************/ -#define MEM_LEAK_TEST 0 /* Running memory leak test if set */ +#define MEM_LEAK_TEST 1 /* Running memory leak test if set */ /* Log to stderr and syslog until becomes a daemon */ diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c index 003d025d1278879f91337137fa7d1249e252e6c4..5de839787583f25b5b3e78bad386eb74bcd4c374 100644 --- a/src/slurmctld/job_mgr.c +++ b/src/slurmctld/job_mgr.c @@ -1287,7 +1287,7 @@ int init_job_conf(void) { if (job_list == NULL) { job_count = 0; - job_list = list_create(&_list_delete_job); + job_list = list_create(_list_delete_job); if (job_list == NULL) fatal ("Memory allocation failure"); } diff --git a/src/slurmctld/partition_mgr.c b/src/slurmctld/partition_mgr.c index 9a9a3a31d35555ed91a1711e07d8bae9d3982203..63877bccaaa7b445ec7aab0673709b86eb34a003 100644 --- a/src/slurmctld/partition_mgr.c +++ b/src/slurmctld/partition_mgr.c @@ -535,7 +535,7 @@ int init_part_conf(void) if (part_list) /* delete defunct partitions */ (void) _delete_part_record(NULL); else - part_list = list_create(&_list_delete_part); + part_list = list_create(_list_delete_part); if (part_list == NULL) fatal ("memory allocation failure"); diff --git a/src/slurmd/common/stepd_api.c b/src/slurmd/common/stepd_api.c index 008aa10767c6855b4b8beaf3ce80b587a4246d8b..2c7a7bf7232283e20c34c3ae569692042d9a1ee1 100644 --- a/src/slurmd/common/stepd_api.c +++ b/src/slurmd/common/stepd_api.c @@ -403,7 +403,7 @@ stepd_available(const char *directory, const char *nodename) regex_t re; struct stat stat_buf; - l = list_create((ListDelF) &_free_step_loc_t); + l = list_create((ListDelF) _free_step_loc_t); _sockname_regex_init(&re, nodename); /* diff --git a/src/srun/opt.c b/src/srun/opt.c index 781c32a1923fc3f2d699f230e3b4c52f15bbaee7..4be63d276ab07a6a01113a7af147e8cb5ffa0dbc 100644 --- a/src/srun/opt.c +++ b/src/srun/opt.c @@ -1794,7 +1794,7 @@ _freeF(void *data) static List _create_path_list(void) { - List l = list_create(&_freeF); + List l = list_create(_freeF); char *path = xstrdup(getenv("PATH")); char *c, *lc;