Skip to content

Commit

Permalink
Merge pull request #240 from lipari/sim_state_null
Browse files Browse the repository at this point in the history
sched/simulator:  Add missing sim_state = NULL assignments
  • Loading branch information
dongahn authored Mar 22, 2017
2 parents ca349c9 + c186435 commit 6d49692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sched/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,7 @@ static void trigger_cb (flux_t *h,
send_reply_request (h, "sched", ctx->sctx.sim_state);

free_simstate (ctx->sctx.sim_state);
ctx->sctx.sim_state = NULL;
Jput (o);
}

Expand Down
1 change: 1 addition & 0 deletions simulator/sim_execsrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ static void trigger_cb (flux_t *h,

// Cleanup
free_simstate (ctx->sim_state);
ctx->sim_state = NULL;
Jput (o);
zhash_destroy (&job_hash);
}
Expand Down

0 comments on commit 6d49692

Please sign in to comment.