Skip to content

Commit

Permalink
Fix mem error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Oct 31, 2024
1 parent fc746a9 commit f9b2b60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/API_functions_pmmg.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ int PMMG_Set_outputLsName(PMMG_pParMesh parmesh, const char* lsout) {
/* If \a lsout is not provided we want to use the basename of the input ls
* name and the path of the output mesh name */
if ( parmesh->lsout ) {
PMMG_DEL_MEM(parmesh,parmesh->fieldout,char,"fieldout unalloc");
PMMG_DEL_MEM(parmesh,parmesh->lsout,char,"lsout unalloc");
}

if ( (!lsout) || (!*lsout) ) {
Expand All @@ -403,9 +403,9 @@ int PMMG_Set_outputLsName(PMMG_pParMesh parmesh, const char* lsout) {
return 0;
}

/* Get input field base name and remove .mesh extension */
/* Get input ls base name and remove .mesh extension */
if ( (!parmesh->lsin) || (!*parmesh->lsin) ) {
fprintf(stderr, " ## Error: %s: please, provide an input field"
fprintf(stderr, " ## Error: %s: please, provide an input ls"
" name before calling this function without string.\n",
__func__);
return 0;
Expand Down

0 comments on commit f9b2b60

Please sign in to comment.