aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-28 15:23:13 +0200
committerThomas White <taw@physics.org>2020-08-28 15:23:13 +0200
commit6336f315f18e822d0b3acf59e1744c18d82463e9 (patch)
treed64812e6eeb9670c36c09bc6502a5a9998a2d021 /src
parent3002e04ec239b5dc48ef426cb1136f7937f0bb0e (diff)
Fix premature unref of workdir_file
Diffstat (limited to 'src')
-rw-r--r--src/gui_backend_slurm.c3
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 ) {