IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9583


Ignore:
Timestamp:
Oct 16, 2006, 1:34:03 PM (20 years ago)
Author:
drobbin
Message:

Re-added psFree(out) to psMetadataCopy. These were recently removed but MUST be present to avoid memory leaks!!! Please do not remove!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadata.c

    r9538 r9583  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.139 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-10-13 21:13:48 $
     14 *  @version $Revision: 1.140 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-10-16 23:34:03 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    417417    if (in == NULL) {
    418418        psError(PS_ERR_BAD_PARAMETER_NULL, true, "psMetadataCopy: 'in' cannot be NULL");
     419        psFree(out);
    419420        return NULL;
    420421    }
     
    423424    if (in->list == NULL) {
    424425        psError(PS_ERR_BAD_PARAMETER_NULL, true, "psMetadataCopy: 'in' has NULL list");
     426        psFree(out);
    425427        return NULL;
    426428    }
     
    448450            psFree(newItem);
    449451            psFree(iter);
     452            psFree(out);
    450453            return NULL;
    451454        }
Note: See TracChangeset for help on using the changeset viewer.