Changeset 44dde42 in mainline


Ignore:
Timestamp:
2020-03-13T10:44:49Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1743f8e, 4453a12a, 6b68625, ac5c37c, e28175d
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.