From e39efa49a12c3761e6bc648945d8ae23e8ba39b0 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Wed, 20 Sep 2006 19:51:57 +0000 Subject: [PATCH] remove bad free --- src/common/slurm_protocol_api.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/slurm_protocol_api.c b/src/common/slurm_protocol_api.c index 1f983ada39e..392d5014a75 100644 --- a/src/common/slurm_protocol_api.c +++ b/src/common/slurm_protocol_api.c @@ -2191,9 +2191,7 @@ extern void slurm_free_msg(slurm_msg_t * msg) { if(msg->auth_cred) (void) g_slurm_auth_destroy(msg->auth_cred); - /* make sure we have all the ones we sent to so we don't worry - about freing something that may be written to later */ - forward_wait(msg); + if(msg->ret_list) { list_destroy(msg->ret_list); msg->ret_list = NULL; -- GitLab