diff --git a/client/cs_scheduler.C b/client/cs_scheduler.C index 8cf708ec60..5e43e7a964 100644 --- a/client/cs_scheduler.C +++ b/client/cs_scheduler.C @@ -318,6 +318,7 @@ void CLIENT_STATE::handle_scheduler_reply( f = fopen(SCHED_OP_RESULT_FILE, "r"); retval = sr.parse(f); + fclose(f); if (strlen(sr.project_name)) { strcpy(project->project_name, sr.project_name); diff --git a/client/http.C b/client/http.C index 2125de88e6..f35e3c3b3b 100644 --- a/client/http.C +++ b/client/http.C @@ -351,7 +351,7 @@ int HTTP_OP_SET::insert(HTTP_OP* ho) { bool HTTP_OP_SET::poll() { unsigned int i; HTTP_OP* htp; - int n; + int n, retval; bool action = false; for (i=0; i &urls) { urls.push_back(str); } } + fclose(f); if (log_flags.sched_op_debug) { printf("Parsed master file; got %d scheduler URLs\n", urls.size()); }