Changeset 762f989 in mainline


Ignore:
Timestamp:
2020-07-05T23:09:49Z (4 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
583c2a3
Parents:
d74a2b8
git-author:
Manuele Conti <manuele.conti@…> (2020-07-05 13:28:14)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2020-07-05 23:09:49)
Message:

Avoid some leaks in display module
when display_window_create return with error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/src/display.c

    rd74a2b8 r762f989  
    176176        if (rc != EOK) {
    177177                async_forget(req);
     178                free(window);
    178179                return rc;
    179180        }
    180181
    181182        async_wait_for(req, &rc);
    182         if (rc != EOK)
    183                 return rc;
     183        if (rc != EOK) {
     184                free(window);
     185                return rc;
     186        }
    184187
    185188        window->display = display;
Note: See TracChangeset for help on using the changeset viewer.