Changeset ca95ccd in mainline for uspace/lib/sif/src/sif.c
- Timestamp:
- 2024-08-22T20:46:18Z (11 months ago)
- Branches:
- master
- Children:
- 9546146
- Parents:
- cde067e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/sif/src/sif.c
rcde067e rca95ccd 228 228 errno_t rc; 229 229 bool endtag; 230 FILE *f ;230 FILE *f = NULL; 231 231 232 232 doc = calloc(1, sizeof(sif_doc_t)); … … 255 255 } 256 256 257 fclose(f); 257 258 doc->root = root; 258 259 *rdoc = doc; … … 261 262 sif_node_delete(root); 262 263 free(doc); 264 if (f != NULL) 265 fclose(f); 263 266 return rc; 264 267 } … … 372 375 } 373 376 377 fclose(f); 374 378 return EOK; 375 379 error:
Note:
See TracChangeset
for help on using the changeset viewer.