Changeset 58970 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Dec 3, 2015 4:12:10 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/VBoxBs2Linker.cpp
r58153 r58970 83 83 { 84 84 fprintf(stderr, "syntax error: The --output option expects a filename.\n"); 85 free(papszInputs); 85 86 return 12; 86 87 } … … 91 92 fprintf(stderr, "Only one output file is allowed. You've specified '%s' and '%s'\n", 92 93 pszOutput, pszValue); 94 free(papszInputs); 93 95 return 2; 94 96 } … … 100 102 case 'V': 101 103 printf("%s\n", "$Revision$"); 104 free(papszInputs); 102 105 return 0; 103 106 104 107 case '?': 105 108 case 'h': 106 printf("usage: %s [options] -o <output> <input1> [input2 ... [inputN]]\n", 107 argv[0]);109 printf("usage: %s [options] -o <output> <input1> [input2 ... [inputN]]\n", argv[0]); 110 free(papszInputs); 108 111 return 0; 109 112 } … … 117 120 { 118 121 fprintf(stderr, "syntax error: No output file was specified (-o or --output).\n"); 122 free(papszInputs); 119 123 return 2; 120 124 } … … 122 126 { 123 127 fprintf(stderr, "syntax error: No input files was specified.\n"); 128 free(papszInputs); 124 129 return 2; 125 130 } … … 138 143 { 139 144 fprintf(stderr, "error: Failed to open output file '%s' for writing\n", pszOutput); 145 free(papszInputs); 140 146 return 1; 141 147 } … … 208 214 209 215 fclose(pOutput); 216 free(papszInputs); 210 217 return rcExit; 211 218 } -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/VBoxBs3Linker.cpp
r58633 r58970 133 133 { 134 134 fprintf(stderr, "syntax error: The --output option expects a filename.\n"); 135 free(paInputs); 135 136 return 12; 136 137 } … … 141 142 fprintf(stderr, "Only one output file is allowed. You've specified '%s' and '%s'\n", 142 143 pszOutput, pszValue); 144 free(paInputs); 143 145 return 2; 144 146 } … … 150 152 case 'V': 151 153 printf("%s\n", "$Revision$"); 154 free(paInputs); 152 155 return 0; 153 156 … … 156 159 printf("usage: %s [options] -o <output> <input1> [input2 ... [inputN]]\n", 157 160 argv[0]); 161 free(paInputs); 158 162 return 0; 159 163 } … … 209 213 fprintf(stderr, "error: Failed to open input file '%s' for reading\n", paInputs[cInputs].pszFile); 210 214 if (pFile) 215 { 216 free(paInputs); 211 217 return 1; 218 } 212 219 cInputs++; 213 220 } … … 217 224 { 218 225 fprintf(stderr, "syntax error: No output file was specified (-o or --output).\n"); 226 free(paInputs); 219 227 return 2; 220 228 } … … 222 230 { 223 231 fprintf(stderr, "syntax error: No input files was specified.\n"); 232 free(paInputs); 224 233 return 2; 225 234 } … … 237 246 { 238 247 fprintf(stderr, "error: Failed to open output file '%s' for writing\n", pszOutput); 248 free(paInputs); 239 249 return 1; 240 250 } -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/VBoxBs3ObjConverter.cpp
r58814 r58970 643 643 { 644 644 pchName[0] = fProbably32bit ? '?' : '_'; 645 pchName[1] = fProbably32bit ? '?' :'?';645 pchName[1] = '?'; 646 646 break; 647 647 }
Note:
See TracChangeset
for help on using the changeset viewer.