Changeset 689 in MondoRescue for trunk/mondo/mondo/mondorestore/mondo-prep.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/mondorestore/mondo-prep.c

    r688 r689  
    203203    iamhere("STARTING");
    204204    log_msg(1, "OK, opened i-want-my-lvm. Shutting down LVM volumes...");
    205     if (find_home_of_exe("lvm"))    // found it :) cool
     205    tmp = find_home_of_exe("lvm");
     206    if (tmp)    // found it :) cool
    206207    {
    207208        asprintf(&lvscan_sz, "lvm lvscan");
     
    219220        asprintf(&vgremove_sz, "vgremove");
    220221    }
     222    paranoid_free(tmp);
     223
    221224    asprintf(&command,
    222225            "for i in `%s | cut -d\"'\" -f2 | sort -r` ; do echo \"Shutting down lv $i\" >> "
Note: See TracChangeset for help on using the changeset viewer.