IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2017, 10:16:40 AM (9 years ago)
Author:
eugene
Message:

do not segfault if a colon is isolated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20170908/Ohana/src/libdvo/src/dbFields.c

    r39633 r40206  
    333333
    334334  // make a local working copy of fieldName and replace ':' with spaces
     335  // XXX memory leak here:
    335336  char *fieldCopy = strcreate(fieldName);
    336337  for (j = 0; fieldCopy[j]; j++) {
     
    338339  }
    339340
     341  // XXX potential memory leak here
    340342  char *firstWord = getword(fieldCopy);
     343  if (!firstWord) return FALSE;
    341344 
    342345  // firstWord may be either flux, mag or photcode
Note: See TracChangeset for help on using the changeset viewer.