Changeset 44c2500 in git


Ignore:
Timestamp:
2008-03-08T04:47:33Z (11 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
8560c8f
Parents:
2a1d287
Message:

memory leak after using php_basename

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@544 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    r2a1d287 r44c2500  
    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.