Changeset 2911 in MondoRescue


Ignore:
Timestamp:
Dec 9, 2011, 4:31:30 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix a memory free bug where a used variable was freed to early
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/common/libmondo-devices.c

    r2907 r2911  
    29502950{
    29512951    char *tmp = NULL;
     2952    char *tmp1 = NULL;
    29522953    char *command = NULL;
    29532954    char *sz = NULL;
     
    29762977    if (bkpinfo->scratchdir) {
    29772978        chdir("/tmp");
    2978         mr_asprintf(&tmp, "rm -Rf %s", bkpinfo->scratchdir);
    2979         paranoid_system(tmp);
    2980         mr_free(tmp);
     2979        mr_asprintf(&tmp1, "rm -Rf %s", bkpinfo->scratchdir);
     2980        paranoid_system(tmp1);
     2981        mr_free(tmp1);
    29812982    }
    29822983    sprintf(bkpinfo->scratchdir, "%s/mondo.scratch.%d", tmp,
Note: See TracChangeset for help on using the changeset viewer.