IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34153


Ignore:
Timestamp:
Jul 13, 2012, 4:39:42 PM (14 years ago)
Author:
eugene
Message:

plug some leaks; clear faults on threads after counting the faults

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageMapFit.c

    r30078 r34153  
    317317        psFree (A);
    318318        psFree (B);
     319        psFree (Empty);
    319320        return true;
    320321    }
     
    408409        if (!*pGoodFit) {
    409410            psWarning ("bad fit to image map, try something else");
     411            psFree(resid);
     412            if (!inMask) psFree (mask);
    410413            return true;
    411414        }
  • trunk/psLib/src/sys/psThread.c

    r33089 r34153  
    343343            psThread *thread = pool->data[i];
    344344            if (thread->fault) {
     345                // we had a fault on this thread -- clear the fault and keep going, but record
     346                // the fault.
    345347                numFaults++;
     348                thread->fault = false;
    346349            }
    347350        }
Note: See TracChangeset for help on using the changeset viewer.