Changeset ca95ccd in mainline for uspace/lib/sif/src/sif.c


Ignore:
Timestamp:
2024-08-22T20:46:18Z (11 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
9546146
Parents:
cde067e
Message:

Fix file closing, volume config sync.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/sif/src/sif.c

    rcde067e rca95ccd  
    228228        errno_t rc;
    229229        bool endtag;
    230         FILE *f;
     230        FILE *f = NULL;
    231231
    232232        doc = calloc(1, sizeof(sif_doc_t));
     
    255255        }
    256256
     257        fclose(f);
    257258        doc->root = root;
    258259        *rdoc = doc;
     
    261262        sif_node_delete(root);
    262263        free(doc);
     264        if (f != NULL)
     265                fclose(f);
    263266        return rc;
    264267}
     
    372375        }
    373376
     377        fclose(f);
    374378        return EOK;
    375379error:
Note: See TracChangeset for help on using the changeset viewer.