IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9745 for trunk/psLib/src/types


Ignore:
Timestamp:
Oct 24, 2006, 6:58:39 PM (20 years ago)
Author:
drobbin
Message:

Fixed LookupTable to error when a partially-constructed table row is encountered. Also fixed memory leak associated with this case.

File:
1 edited

Legend:

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

    r9730 r9745  
    77*  @author Ross Harman, MHPCC
    88*
    9 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-10-24 22:52:56 $
     9*  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-10-25 04:58:38 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    564564                            return NULL;
    565565                        }
     566                    }
     567                    if (strValue != NULL && strNum == NULL) {
     568                        psError(PS_ERR_UNKNOWN, true,
     569                                "Parsing text file failed - missing table value(s).");
     570                        fclose(fp);
     571                        psFree(outputArray);
     572                        psFree(line);
     573                        psFree(strValue);
     574                        return NULL;
    566575                    }
    567576                }  // ignore line
Note: See TracChangeset for help on using the changeset viewer.