IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2006, 11:44:52 AM (20 years ago)
Author:
jhoblitt
Message:

updated version to fix memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jhoblitt/ippdb/tests/metadatafromobject.c

    r7500 r8006  
    10591059        bool            status;
    10601060
    1061         object = detRunRowAlloc("a string", -32);
     1061        object = detRunRowAlloc(-32, "a string");
    10621062        if (!object) {
    10631063            exit(EXIT_FAILURE);
     
    10711071        psFree(object);
    10721072
     1073        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
     1074            psFree(md);
     1075            exit(EXIT_FAILURE);
     1076        }
    10731077        if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) {
    1074             psFree(md);
    1075             exit(EXIT_FAILURE);
    1076         }
    1077         if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    10781078            psFree(md);
    10791079            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.