/[escript]/trunk-mpi-branch/paso/src/Distribution.c
ViewVC logotype

Diff of /trunk-mpi-branch/paso/src/Distribution.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1271 by gross, Fri Aug 3 02:40:39 2007 UTC revision 1272 by gross, Fri Aug 24 00:40:43 2007 UTC
# Line 48  void Paso_Distribution_free( Paso_Distri Line 48  void Paso_Distribution_free( Paso_Distri
48  {  {
49    index_t i;    index_t i;
50    
51    if ( in && !(--in->reference_counter) )    if ( in) {
52    {      --in->reference_counter;
53      Paso_MPIInfo_free( in->mpi_info );      if (in->reference_counter<=0) {
54      MEMFREE( in->first_component );        Paso_MPIInfo_free( in->mpi_info );
55      MEMFREE( in );        MEMFREE( in->first_component );
56    }        MEMFREE( in );
57        }
58      }
59  }  }
60    
61  Paso_Distribution* Paso_Distribution_getReference( Paso_Distribution *in )  Paso_Distribution* Paso_Distribution_getReference( Paso_Distribution *in )

Legend:
Removed from v.1271  
changed lines
  Added in v.1272

  ViewVC Help
Powered by ViewVC 1.1.26