Changeset 1080 in MondoRescue for branches/stable/mondo/src/common/libmondo-string.c
- Timestamp:
- Jan 28, 2007, 7:04:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-string.c
r1063 r1080 8 8 9 9 #include "my-stuff.h" 10 #include "mr_mem.h" 10 11 #include "mondostructures.h" 11 12 #include "libmondo-string.h" … … 220 221 malloc_string(tmp); 221 222 if (!incoming[0]) { 222 free(tmp);223 mr_free(tmp); 223 224 return (0); 224 225 } … … 254 255 fatal_error(tmp); 255 256 } 256 paranoid_free(tmp);257 mr_free(tmp); 257 258 return (outval); 258 259 } … … 512 513 char *p; 513 514 514 input = m alloc(2000);515 input = mr_malloc(2000); 515 516 assert_string_is_neither_NULL_nor_zerolength(ip); 516 517 assert_string_is_neither_NULL_nor_zerolength(token); … … 526 527 strcat(output, p); 527 528 } 528 paranoid_free(input);529 mr_free(input); 529 530 } 530 531 … … 796 797 } 797 798 in_out[i] = '\0'; 798 paranoid_free(tmp);799 mr_free(tmp); 799 800 /* for(i=strlen(in_out); i>0 && in_out[i-1]<=32; i--) {in_out[i-1]='\0';} */ 800 801 } … … 1018 1019 strcpy(out_reason, reason); 1019 1020 } 1020 paranoid_free(filename);1021 paranoid_free(reason);1021 mr_free(filename); 1022 mr_free(reason); 1022 1023 return (sev); 1023 1024 } … … 1112 1113 j = (int) strlen(outstr); 1113 1114 sprintf(outstr + j, "] %d%% used", percentage); 1114 paranoid_free(pos_w_commas);1115 paranoid_free(tmp);1115 mr_free(pos_w_commas); 1116 mr_free(tmp); 1116 1117 return (outstr); 1117 1118 }
Note:
See TracChangeset
for help on using the changeset viewer.