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

    r688 r689  
    479479int get_acl_list(char *filelist, char *facl_fname)
    480480{
    481     char *command;
     481    char *command = NULL;
     482    char *tmp = NULL;
    482483    int retval = 0;
    483484
     
    486487    paranoid_free(command);
    487488
    488     if (find_home_of_exe("getfacl")) {
     489    tmp = find_home_of_exe("getfacl");
     490    if (tmp) {
    489491//      sort_file(filelist); // FIXME - filelist chopper sorts, so this isn't necessary
    490492        asprintf(&command,
     
    495497        paranoid_free(command);
    496498    }
     499    paranoid_free(tmp);
    497500    return (retval);
    498501}
     
    501504int get_fattr_list(char *filelist, char *fattr_fname)
    502505{
    503     char *command;
     506    char *command = NULL;
     507    char *tmp = NULL;
    504508    int retval = 0;
    505509
     
    508512    paranoid_free(command);
    509513
    510     if (find_home_of_exe("getfattr")) {
     514    tmp = find_home_of_exe("getfattr");
     515    if (tmp) {
    511516//      sort_file(filelist); // FIXME - filelist chopper sorts, so this isn't necessary
    512517        retval =
     
    514519                         fattr_fname);
    515520    }
     521    paranoid_free(tmp);
    516522    return (retval);
    517523}
Note: See TracChangeset for help on using the changeset viewer.