Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 277168d in mainline


Ignore:
Timestamp:
2020-07-05T13:28:14Z (5 weeks ago)
Author:
Manuele Conti <manuele.conti@…>
Parents:
d74a2b8
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 r277168d  
    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.