Changeset 85c98af in mainline


Ignore:
Timestamp:
2020-04-28T08:09:44Z (5 years ago)
Author:
Manuele Conti <manuele.conti@…>
Parents:
2a09dcb
Message:

Avoid memory leak into sheet_create function

File:
1 edited

Legend:

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

    r2a09dcb r85c98af  
    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.