IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7673


Ignore:
Timestamp:
Jun 23, 2006, 3:52:58 PM (20 years ago)
Author:
jhoblitt
Message:

fix segfault & memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r7672 r7673  
    448448            output, PS_LIST_TAIL, "detInputExp",  PS_META_DUPLICATE_OK, NULL,
    449449                    md);
     450            psFree(md);
    450451        }
    451452
     
    467468    // search from rawImfiles
    468469    psArray *rawImfiles = searchRawImfiles(config, NULL);
     470    if (!rawImfiles) {
     471        psError(PS_ERR_UNKNOWN, false, "no rawImfile rows found");
     472        return false;
     473    }
    469474
    470475    // remove detProcessedImfiles
     
    500505            psMetadataAddMetadata(
    501506            output, PS_LIST_TAIL, "rawImfile",  PS_META_DUPLICATE_OK, NULL, md);
     507            psFree(md);
    502508        }
    503509
Note: See TracChangeset for help on using the changeset viewer.