src/agent/adu_core_interface/src/agent_workflow.c
void ADUC_WorkflowData_Free(ADUC_WorkflowData* workflowData)
{
    if (workflowData == NULL)
    {
        return;
    }

    free(workflowData->WorkFolder);

    ADUC_ContentData_Free(workflowData->ContentData);

    if (workflowData->IsRegistered)
    {
        ADUC_MethodCall_Unregister(&(workflowData->RegisterData));
    }

    memset(workflowData, 0, sizeof(*workflowData));
}
/**
 * @brief Free members of ADUC_WorkflowData object.
 *
 * @param workflowData Object whose members should be freed.
 */
@brief Free members of ADUC_WorkflowData object.
@param workflowData Object whose members should be freed.
@brief Free members of ADUC_WorkflowData object . @param workflowData Object whose members should be freed .
void ADUC_WorkflowData_Free(ADUC_WorkflowData* workflowData)
{
    if (workflowData == NULL)
    {
        return;
    }
    free(workflowData->WorkFolder);
    ADUC_ContentData_Free(workflowData->ContentData);
    if (workflowData->IsRegistered)
    {
        ADUC_MethodCall_Unregister(&(workflowData->RegisterData));
    }
    memset(workflowData, 0, sizeof(*workflowData));
}
void ADUC_WorkflowData_Free ( ADUC_WorkflowData * workflowData ) { if ( workflowData == NULL ) { return ; } free ( workflowData -> WorkFolder ) ; ADUC_ContentData_Free ( workflowData -> ContentData ) ; if ( workflowData -> IsRegistered ) { ADUC_MethodCall_Unregister ( & ( workflowData -> RegisterData ) ) ; } memset ( workflowData , 0 , sizeof ( * workflowData ) ) ; }
@brief Free members of ADUC_WorkflowData object.
@brief Free members of ADUC_WorkflowData object .