Changeset 322 in svn for trunk/xcache.c


Ignore:
Timestamp:
2006-12-10T09:14:46+01:00 (9 years ago)
Author:
Xuefer
Message:

avoid double free on php hit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r321 r322  
    13161316    }
    13171317
    1318     xc_free_php(&php TSRMLS_CC);
    1319     xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
     1318    if (newlycompiled) {
     1319        xc_free_php(&php TSRMLS_CC);
     1320        xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
     1321    }
    13201322
    13211323    if (stored_xce) {
     
    13341336
    13351337err_aftersandbox:
    1336     xc_free_php(&php TSRMLS_CC);
    1337     xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
     1338    if (newlycompiled) {
     1339        xc_free_php(&php TSRMLS_CC);
     1340        xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
     1341    }
    13381342
    13391343    if (catched) {
Note: See TracChangeset for help on using the changeset viewer.