Changeset 353


Ignore:
Timestamp:
2007-02-13T07:09:00+01:00 (8 years ago)
Author:
moo
Message:

fixed #67, to success compile on OOM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r345 r353  
    13241324    if (newlycompiled) { 
    13251325        xc_free_php(&php TSRMLS_CC); 
    1326         xc_sandbox_free(&sandbox, 0 TSRMLS_CC); 
    13271326    } 
    13281327 
     
    13371336            h = NULL; 
    13381337        } 
     1338        if (newlycompiled) { 
     1339            xc_sandbox_free(&sandbox, 0 TSRMLS_CC); 
     1340        } 
    13391341        return xc_compile_restore(stored_xce, h TSRMLS_CC); 
     1342    } 
     1343    else { 
     1344        if (newlycompiled) { 
     1345            /* install it */ 
     1346            CG(active_op_array) = op_array; 
     1347            xc_sandbox_free(&sandbox, 1 TSRMLS_CC); 
     1348        } 
    13401349    } 
    13411350    return op_array; 
Note: See TracChangeset for help on using the changeset viewer.