IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2006, 3:33:07 PM (20 years ago)
Author:
Paul Price
Message:

Plugging memory leaks --- done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmConceptsWrite.c

    r6734 r6743  
    204204                        psTrace(__func__, 8, "Writing %s to header %s\n", name, cameraItem->data.V);
    205205                        writeHeader(hdu, cameraItem->data.V, formatted);
    206                         continue;
    207                     }
    208                     if (strcasecmp(source, "VALUE") == 0) {
     206                    } else if (strcasecmp(source, "VALUE") == 0) {
    209207                        psTrace(__func__, 8, "Checking %s against camera format.\n", name);
    210208                        if (! compareConcepts(cameraItem, formatted)) {
     
    212210                                     "format, but the values don't match.\n", name);
    213211                        }
    214                         continue;
     212                    } else {
     213                        psLogMsg(__func__, PS_LOG_WARN, "Concept source %s isn't HEADER or VALUE --- can't "
     214                                 "write\n", nameSource);
    215215                    }
    216                     psLogMsg(__func__, PS_LOG_WARN, "Concept source %s isn't HEADER or VALUE --- can't "
    217                              "write\n", nameSource);
    218                     continue;
    219                 }
    220                 // Assume it's specified by value
    221                 if (! compareConcepts(cameraItem, formatted)) {
     216                } else if (! compareConcepts(cameraItem, formatted)) {
     217                    // Assume it's specified by value
    222218                    psLogMsg(__func__, PS_LOG_WARN, "Concept %s is specified by value in the camera "
    223219                             "format, but the values don't match.\n", name);
    224220                }
     221                psFree(formatted);
     222                psFree(nameSource);
    225223            }
    226224
     
    232230}
    233231
    234 
     232// XXX: Needs the .DEPEND stuff
    235233bool pmConceptsWriteToDefaults(psMetadata *specs, // The concept specifications
    236234                               pmFPA *fpa, // The FPA
     
    266264                             "format, but the values don't match.\n");
    267265                }
     266                psFree(formatted);
    268267            }
    269268        }
     
    331330                    writeHeader(hdu, keyword, formatted);
    332331                }
     332                psFree(formatted);
     333                psFree(keywords);
    333334            }
    334335        }
Note: See TracChangeset for help on using the changeset viewer.