Changeset 150 for trunk


Ignore:
Timestamp:
2006-09-10T02:30:09+02:00 (8 years ago)
Author:
moo
Message:

avoid crash when OOM on mem_realloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mem.c

    r148 r150  
    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.