Changeset 7d53901 in git


Ignore:
Timestamp:
2006-09-10T00:30:09Z (14 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
fc10218
Parents:
75bf7c1
Message:

avoid crash when OOM on mem_realloc

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mem.c

    r42efedb r7d53901  
    255255{
    256256    void *newp = xc_mem_malloc(mem, size);
    257     if (p) {
     257    if (p && newp) {
    258258        memcpy(newp, p, size);
    259259        xc_mem_free(mem, p);
Note: See TracChangeset for help on using the changeset viewer.