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

Changeset 44dde42 in mainline


Ignore:
Timestamp:
2020-03-13T10:44:49Z (3 weeks ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
1743f8e, 4453a12a, 6b68625, ac5c37c
Parents:
6d974a4
git-author:
Manuele Conti <manuele.conti@…> (2020-03-12 21:11:41)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2020-03-13 10:44:49)
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

    r6d974a4 r44dde42  
    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.