Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset cc94724 in mainline


Ignore:
Timestamp:
2020-03-12T21:11:41Z (4 months ago)
Author:
Manuele Conti <manuele.conti@…>
Parents:
badfbc0
Message:

Fix a memory leak in udf_mounted function when block_init returns with error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/udf/udf_ops.c

    rbadfbc0 rcc94724  
    328328        /* initialize block cache */
    329329        errno_t rc = block_init(service_id, MAX_SIZE);
    330         if (rc != EOK)
    331                 return rc;
     330        if (rc != EOK) {
     331                free(instance);
     332                return rc;
     333        }
    332334
    333335        rc = fs_instance_create(service_id, instance);
Note: See TracChangeset for help on using the changeset viewer.