Changeset 2241 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-cli.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/libmondo-cli.c
r2229 r2241 13 13 #include "my-stuff.h" 14 14 #include "mr_mem.h" 15 #include "mr_str ing.h"15 #include "mr_str.h" 16 16 #include "mondostructures.h" 17 17 #include "libmondo-cli-EXT.h" … … 297 297 log_msg (4, "Could not get the list of mounted file systems"); 298 298 paranoid_free(mounted_file_system); 299 mr_free(token); 299 300 return (1); 300 301 } 301 log_msg (5, "token: %s", token); 302 if (token) { 303 log_msg (5, "token: %s", token); 304 } 302 305 while (token != NULL) { 303 306 log_msg (5, "token: %s", token); … … 307 310 add_mounted_fs_struct(DSFptr); 308 311 strcpy(DSFptr->device, token); 312 mr_free(token); 309 313 if ((token = strtok(NULL, token_chars)) == NULL) { 310 314 log_msg (5, "Ran out of entries on the mounted file systems list"); 311 315 paranoid_free(mounted_file_system); 316 mr_free(token); 312 317 return (1); 313 318 } 314 319 log_msg (5, "token: %s", token); 315 320 strcpy(DSFptr->mount_point, token); 321 mr_free(token); 316 322 token = strtok(NULL, token_chars); 317 323 } … … 410 416 log_msg (5, "Found partition: %s", token); 411 417 strcpy(partitions[i++], token); 418 mr_free(token); 412 419 } 413 420 paranoid_free(partition_list); … … 507 514 log_msg (4, "Can't find mount point %s in mounted file systems list", token); 508 515 paranoid_free(tmp); 516 mr_free(token); 509 517 return (1); 510 518 } 511 519 DSFptr->check = 1; 520 mr_free(token); 512 521 } 513 522 /******** … … 535 544 log_msg (4, "Can't find device %s in mounted file systems list", token); 536 545 paranoid_free(tmp); 546 mr_free(token); 537 547 return (1); 538 548 } … … 540 550 } 541 551 } 552 mr_free(token); 542 553 paranoid_free(mount_list); 543 554 } else { … … 588 599 log_msg (4, "Can't find device %s in mounted file systems list", token); 589 600 paranoid_free(tmp); 601 mr_free(token); 590 602 return (1); 591 603 } … … 593 605 break; 594 606 } 607 mr_free(token); 595 608 } 596 609 paranoid_free(tmp); … … 806 819 break; 807 820 } 821 mr_free(token); 808 822 } 809 823 log_msg(1, "include_paths is now '%s'", bkpinfo->include_paths); … … 1137 1151 break; 1138 1152 } 1153 mr_free(token); 1139 1154 } 1140 1155 log_msg(1, "exclude_paths is now '%s'", bkpinfo->exclude_paths);
Note:
See TracChangeset
for help on using the changeset viewer.