Changeset 3292 in MondoRescue for branches/3.2/mondo/src/lib/mr_mem.c


Ignore:
Timestamp:
May 27, 2014, 5:53:14 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Remove from mindi 2 functions replaced by perl code (ReadAllLink by mr-read-all-link and ProcessLDD by mr-process-ldd)
  • Redirect mindi execution to mondo log on the fly to try to improve percentage display with newt (not finished yet)
  • Introduce a new global var MINDI_LOGFILE and use it everywhere
  • Fix some memory free mising (thanks valgrind)
  • Remove a call to rpm to log packages - not portable
  • Works with valgrind locally to create images in dir
File:
1 edited

Legend:

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

    r3208 r3292  
    7474    size_t n = 0;
    7575
     76    if (*lineptr != NULL) {
     77        /* free a variable which should be already free */
     78        mr_msg_int(1,line,file,"mr_getline_ found a non freed variable here");
     79        mr_free_int(lineptr,line,file);
     80    }
    7681    ret = getline(lineptr,&n,fd);
    7782    if ((ret == -1) && (! feof(fd))) {
     
    8186    /*  We reached end of file, allocating empty string */
    8287    if (ret == -1) {
    83         mr_asprintf_int(lineptr, line, file, "");
     88        mr_free_int(lineptr,line,file);
     89        mr_asprintf_int(lineptr,line,file,"");
    8490    }
    8591}
Note: See TracChangeset for help on using the changeset viewer.