Changeset 689 in MondoRescue for trunk/mondo/mondo/common/libmondo-archive.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-archive.c

    r688 r689  
    433433    if (bkpinfo->backup_media_type == dvd) {
    434434#ifdef DVDRWFORMAT
    435         if (!find_home_of_exe("dvd+rw-format")) {
     435        tmp = find_home_of_exe("dvd+rw-format");
     436        if (!tmp) {
    436437            fatal_error
    437438                ("Cannot find dvd+rw-format. Please install it or fix your PATH.");
    438439        }
     440        paranoid_free(tmp);
    439441#endif
    440         if (!find_home_of_exe("growisofs")) {
     442        tmp = find_home_of_exe("growisofs");
     443        if (!tmp) {
    441444            fatal_error
    442445                ("Cannot find growisofs. Please install it or fix your PATH.");
    443446        }
     447        paranoid_free(tmp);
    444448    }
    445449
     
    30563060                "Not calculating checksum for %s: it would take too long",
    30573061                biggie_filename);
    3058         if ( !find_home_of_exe("ntfsresize")) {
     3062        tmp = find_home_of_exe("ntfsresize");
     3063        if ( !tmp) {
    30593064            fatal_error("ntfsresize not found");
    30603065        }
    3061         sprintf(command, "ntfsresize --force --info %s|grep '^You might resize at '|cut -d' ' -f5", biggie_filename);
     3066        paranoid_free(tmp);
     3067
     3068        asprintf(&command, "ntfsresize --force --info %s|grep '^You might resize at '|cut -d' ' -f5", biggie_filename);
    30623069        log_it("command = %s", command);
    30633070        tmp = call_program_and_get_last_line_of_output(command);
     3071        paranoid_free(command);
     3072
    30643073        log_it("res of it = %s", tmp);
    30653074        totallength = (off_t)atoll(tmp);
Note: See TracChangeset for help on using the changeset viewer.