Changeset 2912


Ignore:
Timestamp:
Dec 9, 2011, 5:37:56 PM (5 years ago)
Author:
bruno
Message:
  • Fix a memory free bug where a used variable was misused in asprintf/free
File:
1 edited

Legend:

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

    r2907 r2912  
    813813        if (bkpinfo->scratchdir) {
    814814            chdir("/tmp");
    815             mr_asprintf(&tmp, "rm -Rf %s", bkpinfo->scratchdir);
    816             paranoid_system(tmp);
    817             mr_free(tmp);
     815            mr_asprintf(&tmp1, "rm -Rf %s", bkpinfo->scratchdir);
     816            paranoid_system(tmp1);
     817            mr_free(tmp1);
    818818        }
    819819        sprintf(bkpinfo->scratchdir, "%s/mondo.scratch.%ld", flag_val['S'],
Note: See TracChangeset for help on using the changeset viewer.