numerics/src/NCP/NCP_PathSearch.c
/** Release memory used by SolverOptions members solverData and dWork.

    Internal stuff. Must be called at the end of ncp_pathsearch.
    This concerns only options parameters which management is
    specific to this solver. All others (iparam ...) are handled
    in solver_options_delete generic function.
 */
Release memory used by SolverOptions members solverData and dWork.
Internal stuff. Must be called at the end of ncp_pathsearch.
This concerns only options parameters which management is
specific to this solver. All others (iparam ...) are handled
in solver_options_delete generic function.
Release memory used by SolverOptions members solverData and dWork . Internal stuff . Must be called at the end of ncp_pathsearch . This concerns only options parameters which management is specific to this solver . All others ( iparam ... ) are handled in solver_options_delete generic function .
static void ncp_pathsearch_free(SolverOptions * opt)
{
  if(opt->dWork)
    free(opt->dWork);
  opt->dWork = NULL;
  if(opt->solverData)
  {
    pathsearch_data* solverData_PathSearch = (pathsearch_data*) opt->solverData;
    free_NMS_data(solverData_PathSearch->data_NMS);
    free(solverData_PathSearch->lsa_functions);
    free(opt->solverData);
  }
  opt->solverData = NULL;
}
static void ncp_pathsearch_free ( SolverOptions * opt ) { if ( opt -> dWork ) free ( opt -> dWork ) ; opt -> dWork = NULL ; if ( opt -> solverData ) { pathsearch_data * solverData_PathSearch = ( pathsearch_data * ) opt -> solverData ; free_NMS_data ( solverData_PathSearch -> data_NMS ) ; free ( solverData_PathSearch -> lsa_functions ) ; free ( opt -> solverData ) ; } opt -> solverData = NULL ; }
Release memory used by SolverOptions members solverData and dWork.
Release memory used by SolverOptions members solverData and dWork .