IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38497


Ignore:
Timestamp:
Jun 19, 2015, 9:03:41 AM (11 years ago)
Author:
eugene
Message:

free unused memory (incomplete)

Location:
branches/eam_branches/ipp-20150616/Ohana/src/dvomerge
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/include/dvomerge.h

    r38468 r38497  
    174174off_t      dvo_map_image_ID       PROTO((IDmapType *IDmap, off_t oldID));
    175175int        dvo_update_image_IDs   PROTO((IDmapType *IDmap, Catalog *catalog));
     176void       dvo_image_map_free     PROTO((IDmapType *IDmap));
    176177
    177178// dvorepair prototypes
  • branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/src/dvo_image_merge_dbs.c

    r38441 r38497  
    55void SortTgtByTimes (e_time *S, off_t *I, short *C, off_t N);
    66off_t getTgtIndex (e_time start, e_time stop, short photcode, off_t *TgtIndex, e_time *TgtTimes, short *TgtCodes, off_t NimagesTgt);
     7
     8void dvo_image_map_free (IDmapType *IDmap) {
     9  // we don't own the IDmap, just the elements
     10  free (IDmap->old);
     11  free (IDmap->old);
     12  free (IDmap->notFound);
     13}
    714
    815// we have two tables; 'tgt' contains some exposures from 'src' : find them and match a map
  • branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/src/dvomergeImageIDs.c

    r38441 r38497  
    8181  dvo_image_unlock (&outDB); // unlock output
    8282
     83  gfits_db_free (inDB);
     84  gfits_db_free (outDB);
     85
    8386  return TRUE;
    8487}
     
    136139  dvo_image_match_dbs(IDmap, &outDB, &inDB);
    137140
     141  gfits_db_free (inDB);
     142  gfits_db_free (outDB);
     143
    138144  return TRUE;
    139145}
  • branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/src/dvomergeUpdate.c

    r38468 r38497  
    112112
    113113  int status = dvomergeUpdate_catalogs (input, output, outsky, inlist, NsecfiltInput, NsecfiltOutput, &IDmap, secfiltMap);
     114  dvo_image_map_free (&IDmap);
    114115
    115116  // save the output sky table copy
     
    121122  }
    122123
     124  ohana_memcheck (TRUE);
     125
    123126  if (!status) {
    124127    MARKTIME ("ERROR: elapsed time %9.4f sec\n", dtime);
Note: See TracChangeset for help on using the changeset viewer.