Changeset 1080 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
- Timestamp:
- Jan 28, 2007, 7:04:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
r1067 r1080 1 1 /*************************************************************************** 2 mondo-compare.c - compares mondoarchive data 3 ------------------- 4 begin : Fri Apr 25 2003 5 copyright : (C) 2000 by Hugo Rabson 6 email : Hugo Rabson <hugorabson@msn.com> 7 cvsid : $Id$ 8 ***************************************************************************/ 9 10 /*************************************************************************** 11 * * 12 * This program is free software; you can redistribute it and/or modify * 13 * it under the terms of the GNU General Public License as published by * 14 * the Free Software Foundation; either version 2 of the License, or * 15 * (at your option) any later version. * 16 * * 17 ***************************************************************************/ 18 19 /*************************************************************************** 20 * Change Log * 21 *************************************************************************** 22 . 23 24 25 26 10/21/2003 27 - changed "/mnt/cdrom" to MNT_CDROM 28 29 10/18 30 - don't say unknown compressor if no compressor at all 31 32 09/17 33 - cleaned up logging & conversion-to-changed.txt 34 - cleaned up compare_mode() 35 36 09/16 37 - fixed bad malloc(),free() pairs in compare_a_biggiefile() 38 39 09/14 40 - compare_mode() --- a couple of strings were the wrong way round, 41 e.g. changed.txt and changed.files 42 43 05/05 44 - exclude /dev/ * from list of changed files 45 46 04/30 47 - added textonly mode 48 49 04/27 50 - improved compare_mode() to allow for ISO/cd/crazy people 51 52 04/25 53 - first incarnation 2 * compares mondoarchive data 3 * $Id$ 54 4 */ 55 56 5 57 6 #include <pthread.h> … … 207 156 } 208 157 209 paranoid_free(original_cksum_ptr);210 paranoid_free(original_cksum);211 paranoid_free(bigfile_fname_ptr);212 paranoid_free(bigfile_fname);213 paranoid_free(checksum_ptr);214 paranoid_free(checksum);215 paranoid_free(command_ptr);216 paranoid_free(command);217 paranoid_free(tmp_ptr);218 paranoid_free(tmp);158 mr_free(original_cksum_ptr); 159 mr_free(original_cksum); 160 mr_free(bigfile_fname_ptr); 161 mr_free(bigfile_fname); 162 mr_free(checksum_ptr); 163 mr_free(checksum); 164 mr_free(command_ptr); 165 mr_free(command); 166 mr_free(tmp_ptr); 167 mr_free(tmp); 219 168 220 169 return (retval); … … 395 344 } 396 345 unlink(logfile); 397 paranoid_free(command);398 paranoid_free(tmp);399 paranoid_free(filelist_name);400 paranoid_free(logfile);346 mr_free(command); 347 mr_free(tmp); 348 mr_free(filelist_name); 349 mr_free(logfile); 401 350 malloc_string(archiver_exe); 402 351 malloc_string(compressor_exe); … … 494 443 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 495 444 } 496 paranoid_free(tarball_fname);497 paranoid_free(progress_str);498 paranoid_free(tmp);445 mr_free(tarball_fname); 446 mr_free(progress_str); 447 mr_free(tmp); 499 448 return (retval); 500 449 } … … 555 504 } 556 505 557 paranoid_free(tmp);558 paranoid_free(cwd);559 paranoid_free(new);560 paranoid_free(command);506 mr_free(tmp); 507 mr_free(cwd); 508 mr_free(new); 509 mr_free(command); 561 510 562 511 return (resA + resB); … … 663 612 } 664 613 kill_petris(); 665 paranoid_free(tmp);614 mr_free(tmp); 666 615 return (retval); 667 616 } … … 717 666 718 667 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 719 paranoid_free(dir);720 paranoid_free(command);668 mr_free(dir); 669 mr_free(command); 721 670 return (res); 722 671 } … … 761 710 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 762 711 } 763 paranoid_free(dir);764 paranoid_free(command);712 mr_free(dir); 713 mr_free(command); 765 714 return (res); 766 715 }
Note:
See TracChangeset
for help on using the changeset viewer.