Skip to content
Snippets Groups Projects
Commit 2261106f authored by Moe Jette's avatar Moe Jette
Browse files

Added code to free response messages.

parent c8caa0f0
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,7 @@ main (int argc, char *argv[]) ...@@ -70,6 +70,7 @@ main (int argc, char *argv[])
printf ("allocate error %d\n", errno); printf ("allocate error %d\n", errno);
else else
report_results(resp_msg); report_results(resp_msg);
slurm_free_resource_allocation_response_msg ( resp_msg );
for (job_count = 1 ; job_count <max_jobs; job_count++) { for (job_count = 1 ; job_count <max_jobs; job_count++) {
slurm_init_job_desc_msg( &job_mesg ); slurm_init_job_desc_msg( &job_mesg );
...@@ -96,6 +97,7 @@ main (int argc, char *argv[]) ...@@ -96,6 +97,7 @@ main (int argc, char *argv[])
} }
else else
report_results(resp_msg); report_results(resp_msg);
slurm_free_resource_allocation_response_msg ( resp_msg );
} }
for ( ; job_count <max_jobs; job_count++) { for ( ; job_count <max_jobs; job_count++) {
...@@ -111,6 +113,7 @@ main (int argc, char *argv[]) ...@@ -111,6 +113,7 @@ main (int argc, char *argv[])
} }
else else
report_results(resp_msg); report_results(resp_msg);
slurm_free_resource_allocation_response_msg ( resp_msg );
} }
for ( ; job_count <max_jobs; job_count++) { for ( ; job_count <max_jobs; job_count++) {
...@@ -126,6 +129,7 @@ main (int argc, char *argv[]) ...@@ -126,6 +129,7 @@ main (int argc, char *argv[])
} }
else else
report_results(resp_msg); report_results(resp_msg);
slurm_free_resource_allocation_response_msg ( resp_msg );
} }
return (0); return (0);
......
...@@ -39,6 +39,7 @@ main (int argc, char *argv[]) ...@@ -39,6 +39,7 @@ main (int argc, char *argv[])
} }
else else
printf ("job %u submitted\n", resp_msg->job_id); printf ("job %u submitted\n", resp_msg->job_id);
slurm_free_submit_response_response_msg ( resp_msg );
if (argc > 1) if (argc > 1)
count = atoi (argv[1]); count = atoi (argv[1]);
...@@ -70,6 +71,7 @@ main (int argc, char *argv[]) ...@@ -70,6 +71,7 @@ main (int argc, char *argv[])
else { else {
printf ("job %u submitted\n", resp_msg->job_id); printf ("job %u submitted\n", resp_msg->job_id);
} }
slurm_free_submit_response_response_msg ( resp_msg );
} }
exit (error_code); exit (error_code);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment