Changeset 14a014f in mainline


Ignore:
Timestamp:
2020-04-28T13:29:37Z (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:
27c0e5b, 77592a76, 78193b36, 782a3ce, 97cf049
Parents:
2a09dcb
git-author:
Manuele Conti <manuele.conti@…> (2020-04-28 08:09:44)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2020-04-28 13:29:37)
Message:

Avoid memory leak into sheet_create function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/edit/sheet.c

    r2a09dcb r14a014f  
    7979
    8080        sh->data = malloc(sh->dbuf_size);
    81         if (sh->data == NULL)
     81        if (sh->data == NULL) {
     82                free(sh);
    8283                return ENOMEM;
     84        }
    8385
    8486        list_initialize(&sh->tags);
Note: See TracChangeset for help on using the changeset viewer.