IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2011, 10:04:59 AM (15 years ago)
Author:
Serge CHASTEL
Message:

Fixed memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMopsGetSkyChipPsfVersion.c

    r29565 r32175  
    99          "EXTTYPE value: [%s]\n", version);
    1010  if (strcmp(version, "PS1_DV1") == 0) {
     11    psFree(headerSkyChip);
    1112    return 1;
    1213  } else if (strcmp(version, "PS1_DV2") == 0) {
     14    psFree(headerSkyChip);
    1315    return 2;
    1416  }
    1517  psWarning("Unsupported EXTTYPE in SkyChip.psf table: [%s]", version);
     18  psFree(headerSkyChip);
    1619  return 0;
    1720}
Note: See TracChangeset for help on using the changeset viewer.