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-restore.c

    r688 r689  
    20492049        asprintf(&acl_fname, ACL_BIGGLST_FNAME_RAW_SZ, ARCHIVES_PATH);
    20502050        asprintf(&xattr_fname, XATTR_BIGGLST_FNAME_RAW_SZ, ARCHIVES_PATH);
    2051         if (length_of_file(acl_fname) > 0 && find_home_of_exe("setfacl")) {
     2051        tmp = find_home_of_exe("setfacl");
     2052        if (length_of_file(acl_fname) > 0 && tmp) {
    20522053            set_acl_list(biggies_whose_EXATs_we_should_set, acl_fname);
    20532054        }
    2054         if (length_of_file(xattr_fname) > 0
    2055             && find_home_of_exe("setfattr")) {
     2055        paranoid_free(tmp);
     2056
     2057        tmp = find_home_of_exe("setfattr");
     2058        if (length_of_file(xattr_fname) > 0 && tmp) {
    20562059            set_fattr_list(biggies_whose_EXATs_we_should_set, xattr_fname);
    20572060        }
     2061        paranoid_free(tmp);
    20582062        paranoid_free(acl_fname);
    20592063        paranoid_free(xattr_fname);
     
    25662570    log_msg(1, "path is now %s", newpath);
    25672571    log_msg(1, "restoring everything");
    2568     if (!find_home_of_exe("petris") && !g_text_mode) {
     2572    tmp = find_home_of_exe("petris");
     2573    if (!tmp && !g_text_mode) {
    25692574        newtDrawRootText(0, g_noof_rows - 2,
    25702575                         _
     
    25722577        newtRefresh();
    25732578    }
     2579    paranoid_free(tmp);
     2580
    25742581    mvaddstr_and_log_it(g_currentY, 0,
    25752582                        _("Preparing to read your archives"));
Note: See TracChangeset for help on using the changeset viewer.