IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15671 for trunk/psastro/src


Ignore:
Timestamp:
Nov 20, 2007, 9:19:48 PM (19 years ago)
Author:
eugene
Message:

mem leaks

Location:
trunk/psastro/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicGetGrads.c

    r12806 r15671  
    4444        psFree (region);
    4545    }
     46    psFree (view);
    4647    return (grads);
    4748}
  • trunk/psastro/src/psastroMosaicGradients.c

    r15562 r15671  
    6363    if (!status) {
    6464        psError(PSASTRO_ERR_UNKNOWN, false, "failed to find single-chip fit order\n");
     65        psFree (gradients);
     66        psFree (view);
    6567        return false;
    6668    }
     
    8082    if (!status) {
    8183        psError(PS_ERR_IO, false, "Failed to lookup pixel scale");
     84        psFree (gradients);
     85        psFree (view);
    8286        return false;
    8387    }
  • trunk/psastro/src/psastroMosaicSetMatch.c

    r15562 r15671  
    1515    if (!status) {
    1616        psError(PS_ERR_IO, false, "Failed to lookup matching radius: %s", radiusWord);
     17        psFree (view);
    1718        return false;
    1819    }
     
    2122        if (iteration == 0) {
    2223            psError(PS_ERR_IO, false, "Invalid match radius for first iteration: %s", radiusWord);
     24            psFree (view);
    2325            return false;
    2426        }
    2527        psWarning ("skipping match for iteration %d\n", iteration);
     28        psFree (view);
    2629        return true;
    2730    }
  • trunk/psastro/src/psastroOneChip.c

    r15258 r15671  
    4141        }
    4242
    43         // find initial offset / rotation
     43        // find initial offset / rotation / scale
    4444        pmAstromStats *gridStats = pmAstromGridMatch (gridStars, refstars, recipe);
    4545        if (gridStats == NULL) {
Note: See TracChangeset for help on using the changeset viewer.