Skip to content

Commit bce0018

Browse files
committed
qualhisto: unconditionally free array
1 parent 2efae93 commit bce0018

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/quality_pmmg.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ int PMMG_qualhisto( PMMG_pParMesh parmesh, int opt, int isCentral )
259259

260260
nrid += nrid_cur;
261261
}
262+
263+
if( int_node_comm )
264+
PMMG_DEL_MEM( parmesh,int_node_comm->intvalues,int,"intvalues" );
265+
262266
if ( parmesh->info.imprim0 <= PMMG_VERB_VERSION )
263267
return 1;
264268

@@ -339,9 +343,6 @@ int PMMG_qualhisto( PMMG_pParMesh parmesh, int opt, int isCentral )
339343
if ( !ier ) return 0;
340344
}
341345

342-
if( int_node_comm )
343-
PMMG_DEL_MEM( parmesh,int_node_comm->intvalues,int,"intvalues" );
344-
345346
return 1;
346347
}
347348

0 commit comments

Comments
 (0)