Changeset 689 in MondoRescue for trunk/mondo/mondo/common/libmondo-stream.c


Ignore:
Timestamp:
Jul 17, 2006, 7:43:58 PM (18 years ago)
Author:
bcornec
Message:

Still other memory management improvements ( I hope :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-stream.c

    r688 r689  
    222222    dev = NULL;
    223223    siz = NULL;
    224     if (find_home_of_exe("cdrecord")) {
     224    tmp = find_home_of_exe("cdrecord");
     225    if (tmp) {
    225226        asprintf(&cdr_exe, "cdrecord");
    226227    } else {
    227228        asprintf(&cdr_exe, "dvdrecord");
    228229    }
     230    paranoid_free(tmp);
     231
    229232    asprintf(&command, "%s -scanbus 2> /dev/null | grep -i tape | wc -l",
    230233             cdr_exe);
Note: See TracChangeset for help on using the changeset viewer.