IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42381 for trunk/psastro


Ignore:
Timestamp:
Feb 8, 2023, 11:55:30 AM (3 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. plug a memory leak

Location:
trunk/psastro
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro

  • trunk/psastro/src/psastro.c

    r41285 r42381  
    2929
    3030    // load configuration information
    31     pmConfig *config = config = psastroArguments(argc, argv);
    32     if (!config) {
    33         usage();
    34     }
     31    pmConfig *config = psastroArguments(argc, argv);
     32    if (!config) usage();
    3533
    3634    psastroVersionPrint();
  • trunk/psastro/src/psastroDataSave.c

    r38040 r42381  
    7575                if (hdu && hdu != lastHDU) {
    7676                    psastroVersionHeaderFull(hdu->header);
    77                     // Append teh reference catalog to the header as well.
    78                     psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, PSASTRO_RECIPE);
    79                     psMetadataAddStr(hdu->header,PS_LIST_TAIL,"PSREFCAT",PS_META_REPLACE,NULL,
    80                                      psMetadataLookupStr(NULL,recipe,"PSASTRO.CATDIR"));
     77                    // Append the reference catalog to the header as well.
     78                    char *catdir = psMetadataLookupStr(NULL, recipe, "PSASTRO.CATDIR");
     79                    psMetadataAddStr(hdu->header, PS_LIST_TAIL, "PSREFCAT", PS_META_REPLACE, NULL, catdir);
    8180                    lastHDU = hdu;
    8281                }
Note: See TracChangeset for help on using the changeset viewer.