Changeset 1174 in MondoRescue for branches/stable/mondo/src/lib/mr_mem.c


Ignore:
Timestamp:
Feb 16, 2007, 1:22:49 PM (14 years ago)
Author:
Bruno Cornec
Message:

Merger memory management from trunk for libmondo-raid.c
Additional check for mr_allocstr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/lib/mr_mem.c

    r1156 r1174  
    8686void mr_allocstr_int(char *alloc, const char *orig, int line, const char *file) {
    8787
    88     mr_free_int((void **)&alloc, line, file);
     88    if (alloc != NULL) {
     89        mr_free_int((void **)&alloc, line, file);
     90    }
    8991    mr_asprintf_int(&alloc, line, file, orig);
    9092}
Note: See TracChangeset for help on using the changeset viewer.