diff options
author | Thomas White <taw@physics.org> | 2020-08-28 15:23:13 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-28 15:23:13 +0200 |
commit | 6336f315f18e822d0b3acf59e1744c18d82463e9 (patch) | |
tree | d64812e6eeb9670c36c09bc6502a5a9998a2d021 /src/gui_backend_slurm.c | |
parent | 3002e04ec239b5dc48ef426cb1136f7937f0bb0e (diff) |
Fix premature unref of workdir_file
Diffstat (limited to 'src/gui_backend_slurm.c')
-rw-r--r-- | src/gui_backend_slurm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index d96c69d2..0334f00e 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -137,7 +137,6 @@ static void *run_indexing(const char *job_title, fclose(fh); g_free(notes_path); g_object_unref(notes_file); - g_object_unref(workdir_file); cmdline = indexamajig_command_line(geom_filename, "`nproc`", @@ -167,6 +166,8 @@ static void *run_indexing(const char *job_title, job_desc_msg.script = script; job_desc_msg.environment = create_env(&job_desc_msg.env_size); + g_object_unref(workdir_file); + r = slurm_submit_batch_job(&job_desc_msg, &resp); if ( r ) { |