dallocate.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void free_cfgframe_object (struct cfg_frame *cfg)
void free_2darray_l (long int **array, int x)
void free_2darray (unsigned char **array, int x)

Function Documentation

void free_2darray ( unsigned char **  array,
int  x 
)

Definition at line 108 of file dallocate.c.

Referenced by free_cfgframe_object().

00108                                                { 
00109   
00110 int i;
00111  for(i=0; i<x; i++)
00112     free(array[i]);
00113  free(array);
00114 } 

Here is the caller graph for this function:

void free_2darray_l ( long int **  array,
int  x 
)

Definition at line 95 of file dallocate.c.

00095                                             { 
00096   
00097 int i;
00098  for(i=0; i<x; i++)
00099     free(array[i]);
00100  free(array);
00101 } 

void free_cfgframe_object ( struct cfg_frame cfg  ) 

Definition at line 52 of file dallocate.c.

References channel_names::angnames, for_each_pmu::annmr, for_each_pmu::cnext, dgnames::dg_next, dgnames::dgn, for_each_pmu::dgnmr, for_each_pmu::dgunit, channel_names::first, free_2darray(), channel_names::phnames, for_each_pmu::phnmr, and cfg_frame::pmu.

Referenced by cfgparser().

00052                                                  { 
00053 
00054         int j = 0;
00055         struct dgnames *t_dgnames,*r_dgnames; 
00056         printf("Inside free_cfgframe_object()\n");
00057 
00058         while(j<cfg->num_pmu) {                                                 
00059 
00060                 if(cfg->pmu[j]->phnmr != 0)
00061                 free_2darray(cfg->pmu[j]->cnext->phnames,cfg->pmu[j]->phnmr);
00062                 if(cfg->pmu[j]->annmr != 0)
00063                 free_2darray(cfg->pmu[j]->cnext->angnames,cfg->pmu[j]->annmr);
00064 
00065                 if(cfg->pmu[j]->dgnmr != 0) {
00066 
00067                         t_dgnames = cfg->pmu[j]->cnext->first;
00068                         while(t_dgnames != NULL) {
00069 
00070                                 r_dgnames = t_dgnames->dg_next;
00071                                 free_2darray(t_dgnames->dgn,16);
00072                                 t_dgnames = r_dgnames;
00073                                 
00074                         }
00075                 }
00076 
00077 //              free_2darray_l(cfg->pmu[j]->phunit,cfg->pmu[j]->phnmr);
00078 //              free_2darray_l(cfg->pmu[j]->anunit,cfg->pmu[j]->annmr);
00079                 if(cfg->pmu[j]->dgnmr != 0) 
00080                         free_2darray(cfg->pmu[j]->dgunit,cfg->pmu[j]->dgnmr);
00081                 
00082 
00083                 j++;
00084         } // End of While 
00085 
00086         free(cfg);                      
00087 
00088 }

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Tue Jun 7 13:40:44 2011 for iPDC-DBServer by  doxygen 1.6.3