Changeset f214711 in git


Ignore:
Timestamp:
2006-09-10T00:30:09Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.0
Children:
9df06d3
Parents:
a709a80
Message:

avoid crash when OOM on mem_realloc

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.0@150 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mem.c

    r07b663c rf214711  
    251251{
    252252    void *newp = xc_mem_malloc(mem, size);
    253     if (p) {
     253    if (p && newp) {
    254254        memcpy(newp, p, size);
    255255        xc_mem_free(mem, p);
Note: See TracChangeset for help on using the changeset viewer.