IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41511 for trunk


Ignore:
Timestamp:
Mar 3, 2021, 3:06:03 PM (5 years ago)
Author:
eugene
Message:

plug various leaks

Location:
trunk/pswarp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpOverlaps.c

    r39980 r41511  
    168168    psVectorStats (stats, Dvec, NULL, NULL, 0);
    169169    double Dmid = stats->sampleMean;
     170
     171    psFree (Rvec);
     172    psFree (Dvec);
     173    psFree (stats);
    170174
    171175    psProjection *frame = psProjectionAlloc (Rmid, Dmid, PS_RAD_DEG/3600.0, PS_RAD_DEG/3600.0, PS_PROJ_TAN);
  • trunk/pswarp/src/pswarpStatsFile.c

    r35563 r41511  
    6262
    6363    if (!statsFile) return true;
    64     if (!statsFile->md) return true;
     64   
     65    if (!statsFile->md) {
     66      psFree (statsFile);
     67      return true;
     68    }
    6569
    6670    // Write out summary statistics
Note: See TracChangeset for help on using the changeset viewer.