Changeset 2320 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-devices.c
- Timestamp:
- Aug 18, 2009, 2:37:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-devices.c
r2319 r2320 1979 1979 finish(1); 1980 1980 } 1981 strcpy(bkpinfo->scratchdir, p);1982 mr_free(p);1981 mr_free(bkpinfo->scratchdir); 1982 bkpinfo->scratchdir = p; 1983 1983 1984 1984 // Interactive mode: … … 2156 2156 if (tmp[0] != '/') { 2157 2157 mr_asprintf(&sz, "%s", tmp); 2158 paranoid_free(tmp);2158 mr_free(tmp); 2159 2159 mr_asprintf(&tmp, "/%s", sz); 2160 2160 mr_free(sz); … … 2166 2166 log_it("bkpinfo->tmpdir is being set to %s", bkpinfo->tmpdir); 2167 2167 2168 sprintf(bkpinfo->scratchdir, "%s/mondo.scratch.%d", tmp, 2169 (int) (random() % 32768)); 2168 mr_asprintf(&sz, "%s/mondo.scratch.%d", tmp, (int) (random() % 32768)); 2169 mr_free(bkpinfo->scratchdir); 2170 bkpinfo->scratchdir = sz; 2170 2171 log_it("bkpinfo->scratchdir is being set to %s", bkpinfo->scratchdir); 2171 2172 2172 2173 mr_asprintf(&command, "rm -Rf %s/tmp.mondo.* %s/mondo.scratch.*", tmp, tmp); 2173 paranoid_free(tmp);2174 mr_free(tmp); 2174 2175 2175 2176 paranoid_system(command);
Note:
See TracChangeset
for help on using the changeset viewer.