Changeset 544 for trunk


Ignore:
Timestamp:
2008-03-08T05:47:33+01:00 (7 years ago)
Author:
moo
Message:

memory leak after using php_basename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r543 r544  
    872872    { 
    873873        char *basename; 
     874        xc_hash_value_t h; 
    874875        UNISW(size_t, int) basename_len; 
    875876        php_basename(xce->name.str.val, xce->name.str.len, "", 0, &basename, &basename_len TSRMLS_CC); 
    876         return HASH_STR_L(basename, basename_len); 
     877        h = HASH_STR_L(basename, basename_len); 
     878        efree(basename); 
     879        return h; 
    877880    } 
    878881} 
Note: See TracChangeset for help on using the changeset viewer.