Changeset 150 in svn for trunk


Ignore:
Timestamp:
2006-09-10T02:30:09+02:00 (9 years ago)
Author:
Xuefer
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.