- Timestamp:
- Jan 30, 2024 8:30:58 AM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 161361
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/tools/xpt_link.c
r40045 r103114 212 212 } 213 213 214 whole = XPT_MALLOC(arena, flen); 215 if (!whole) { 216 perror("FAILED: XPT_MALLOC for whole"); 217 return 1; 218 } 219 214 220 in = fopen(name, "rb"); 215 221 if (!in) { 216 222 perror("FAILED: fopen"); 217 return 1; 218 } 219 220 whole = XPT_MALLOC(arena, flen); 221 if (!whole) { 222 perror("FAILED: XPT_MALLOC for whole"); 223 XPT_FREE(arena, whole); 223 224 return 1; 224 225 } … … 228 229 if (rv < flen) { 229 230 fprintf(stderr, "short read (%zd vs %zd)! ouch!\n", rv, flen); 231 fclose(in); 232 XPT_FREE(arena, whole); 230 233 return 1; 231 234 } 232 235 if (ferror(in) != 0 || fclose(in) != 0) { 233 236 perror("FAILED: Unable to read typelib file.\n"); 237 XPT_FREE(arena, whole); 234 238 return 1; 235 239 }
Note:
See TracChangeset
for help on using the changeset viewer.