Skip to content

Commit

Permalink
Added exit handler to ensure no double free in workflow_get_workfolde…
Browse files Browse the repository at this point in the history
…r when parent workfolder is used (#596)

* Added exit handler to ensure no double free in workflow_get_workfolder when parent wf is used

* Used changed ownership pattern instead of wonka world logic

* Fixing bad logging command
  • Loading branch information
nihemstr authored Dec 22, 2023
1 parent 85c541e commit 350a551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/workflow_utils/src/workflow_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,8 @@ char* workflow_get_root_sandbox_dir(const ADUC_WorkflowHandle handle)
}

tempRet = pwf;
Log_Debug("Using parent workfolder: '%s'", pwf);
pwf = NULL;
Log_Debug("Using parent workfolder: '%s'", tempRet);
}
else
{
Expand Down

0 comments on commit 350a551

Please sign in to comment.