diff --git a/service/history/transferQueueProcessor.go b/service/history/transferQueueProcessor.go index 7cade76da56..9e0af7b2f66 100644 --- a/service/history/transferQueueProcessor.go +++ b/service/history/transferQueueProcessor.go @@ -606,10 +606,10 @@ func (t *transferQueueProcessorImpl) processSignalExecution(task *persistence.Tr var context *workflowExecutionContext var release releaseWorkflowExecutionFunc context, release, err = t.cache.getOrCreateWorkflowExecution(domainID, execution) - defer release() if err != nil { return err } + defer release() var msBuilder *mutableStateBuilder msBuilder, err = context.loadWorkflowExecution()