IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2006, 5:09:02 PM (19 years ago)
Author:
jhoblitt
Message:

fix premature free

File:
1 edited

Legend:

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

    r10030 r10034  
    7979            psError(PS_ERR_UNKNOWN, false, "no summitExp rows found");
    8080            haveLastFileSet = false;
     81            psFree(output);
    8182        } else {
    8283            haveLastFileSet = true;
    8384            bool status = false;
    84             lastFileSet = psMetadataLookupStr(&status, output->data[0], "exp_id");
    85         }
    86 
    87         psFree(output);
     85            lastFileSet = psStringCopy(psMetadataLookupStr(&status, output->data[0], "exp_id"));
     86            psFree(output);
     87        }
    8888    }
    8989
Note: See TracChangeset for help on using the changeset viewer.