IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2007, 11:56:17 AM (19 years ago)
Author:
Paul Price
Message:

Plugging memory leak.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r14651 r14675  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-08-23 23:45:05 $
     6 *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-08-27 21:56:17 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    544544            char *cameraName = argv[argNum]; // symbolic name of the camera
    545545
    546             // look for the CAMERAS list in config->site
     546            // look for the CAMERAS list in config->site
    547547            psMetadata *cameras = psMetadataLookupMetadata(&mdok, config->site, "CAMERAS");
    548548            if (!cameras) {
     
    553553
    554554            // look for the symbolic camera name in the CAMERAS metadata
    555             char *cameraFile = psMetadataLookupStr(&mdok, cameras, cameraName); // The filename
    556             if (!cameraFile) {
     555            char *cameraFile = psMetadataLookupStr(&mdok, cameras, cameraName); // The filename
     556            if (!cameraFile) {
    557557                psError(PS_ERR_IO, false, "%s is not listed in the site CAMERAS list\n", cameraName);
    558558                psFree(config);
     
    560560            }
    561561
    562             // load this camera's configuration informatoin
     562            // load this camera's configuration informatoin
    563563            if (!pmConfigFileRead(&config->camera, cameraFile, "camera")) {
    564564                psError(PM_ERR_CONFIG, false, "Problem reading %s", cameraName);
     
    566566                return NULL;
    567567            }
    568             // save the name for future uses
    569             config->cameraName = psStringCopy (cameraName);
    570            
     568            // save the name for future uses
     569            config->cameraName = psStringCopy (cameraName);
     570
    571571            psArgumentRemove(argNum, argc, argv);
    572572
     
    10071007        config->format = format;
    10081008    } else {
     1009        psFree(format);
    10091010        psFree(name);
    10101011    }
Note: See TracChangeset for help on using the changeset viewer.