Changeset 2241 in MondoRescue for branches/2.2.9/mondo/src/common/newt-specific.c
- Timestamp:
- Jun 29, 2009, 7:19:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/newt-specific.c
r2230 r2241 368 368 } 369 369 370 /* Free memory allocated for newt */ 371 void free_newt_stuff() { 372 373 int i; 374 375 for (i = 0; i < g_noof_log_lines; i++) { 376 mr_free(err_log_lines[i]); 377 } 378 mr_free(err_log_lines); 379 } 380 370 381 371 382 … … 405 416 printf("Execution run ended; result=%d\n", signal); 406 417 printf("Type 'less %s' to see the output log\n", MONDO_LOGFILE); 407 if (strstr(bkpinfo->tmpdir ,"mondo.tmp.") != NULL) { 408 mr_asprintf(&command, "rm -Rf %s %s", bkpinfo->tmpdir, bkpinfo->scratchdir); 409 system(command); 410 paranoid_free(command); 411 } 418 if (bkpinfo->tmpdir) { 419 log_msg(8,"tempdir is %s",bkpinfo->tmpdir); 420 if (strstr(bkpinfo->tmpdir ,"mondo.tmp.") != NULL) { 421 log_msg(8,"erasing tempdir"); 422 mr_asprintf(&command, "rm -Rf %s", bkpinfo->tmpdir); 423 system(command); 424 paranoid_free(command); 425 } 426 } 427 if (bkpinfo->scratchdir) { 428 log_msg(8,"scratchdir is %s", bkpinfo->scratchdir); 429 if (strstr(bkpinfo->scratchdir ,"mondo.scratch.") != NULL) { 430 log_msg(8,"erasing scratchdir"); 431 mr_asprintf(&command, "rm -Rf %s", bkpinfo->scratchdir); 432 system(command); 433 paranoid_free(command); 434 } 435 } 436 /* Free all allocated strings in bkpinfo */ 437 mr_free(bkpinfo->nfs_user); 438 439 /* Then free the structure */ 412 440 paranoid_free(bkpinfo); 413 441 free_libmondo_global_strings(); 442 free_newt_stuff(); 414 443 exit(signal); 415 444 }
Note:
See TracChangeset
for help on using the changeset viewer.