Changeset f7f2c7f in mainline


Ignore:
Timestamp:
2020-04-28T17:19:12Z (5 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:
18c2e87
Parents:
27c0e5b
git-author:
Manuele Conti <manuele.conti@…> (2020-04-28 15:29:22)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2020-04-28 17:19:12)
Message:

Avoid memory leak in mbr_create function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/src/mbr.c

    r27c0e5b rf7f2c7f  
    328328
    329329        label = calloc(1, sizeof(label_t));
    330         if (label == NULL)
    331                 return ENOMEM;
     330        if (label == NULL) {
     331                rc = ENOMEM;
     332                goto error;
     333        }
    332334
    333335        list_initialize(&label->parts);
Note: See TracChangeset for help on using the changeset viewer.