Changeset 78193b36 in mainline


Ignore:
Timestamp:
2020-04-28T15:29:22Z (5 years ago)
Author:
Manuele Conti <manuele.conti@…>
Children:
a2b890d
Parents:
14a014f
Message:

Avoid memory leak in mbr_create function

File:
1 edited

Legend:

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

    r14a014f r78193b36  
    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.