IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37002


Ignore:
Timestamp:
Jul 12, 2014, 8:38:35 AM (12 years ago)
Author:
eugene
Message:

free the found and foundWarp catalog elements (grows too large for whole sky)

Location:
branches/eam_branches/ipp-20140610/Ohana/src/libdvo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/libdvo/include/dvo.h

    r36932 r37002  
    612612
    613613  /* pointers for data manipulation */
    614   off_t *found;
    615   off_t *foundWarp;
    616   off_t *image;
    617   off_t *mosaic;
    618   float *X;
    619   float *Y;
    620   int   *nOwn; // relastro uses this to count owned detections per object
     614  off_t *found_t;
     615  off_t *foundWarp_t;
     616  off_t *image_t;
     617  off_t *mosaic_t;
     618  float *X_t;
     619  float *Y_t;
     620  int   *nOwn_t; // relastro uses this to count owned detections per object
    621621
    622622} Catalog;
  • branches/eam_branches/ipp-20140610/Ohana/src/libdvo/src/dvo_catalog.c

    r36975 r37002  
    485485
    486486  /* pointers for data manipulation */
    487   catalog[0].found = NULL;
    488   catalog[0].image = NULL;
    489   catalog[0].mosaic = NULL;
    490   catalog[0].X = NULL;
    491   catalog[0].Y = NULL;
     487  catalog[0].X_t = NULL;
     488  catalog[0].Y_t = NULL;
     489  catalog[0].found_t = NULL;
     490  catalog[0].image_t = NULL;
     491  catalog[0].mosaic_t = NULL;
     492  catalog[0].foundWarp_t = NULL;
    492493}
    493494
     
    856857    catalog[0].lensobj = NULL;
    857858  }
     859  if (catalog[0].X_t)         free (catalog[0].X_t);
     860  if (catalog[0].Y_t)         free (catalog[0].Y_t);
     861  if (catalog[0].found_t)     free (catalog[0].found_t);
     862  if (catalog[0].image_t)     free (catalog[0].image_t);
     863  if (catalog[0].mosaic_t)    free (catalog[0].mosaic_t);
     864  if (catalog[0].foundWarp_t) free (catalog[0].foundWarp_t);
    858865}
    859866
Note: See TracChangeset for help on using the changeset viewer.