wayland: Free temporary string on error exit

Summary: wayland: Free temporary string on error exit

Reviewers: cedric, devilhorns, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2154
This commit is contained in:
Bryce Harrington 2015-03-13 20:04:16 -04:00 committed by Mike Blumenkrantz
parent ba7feb62f8
commit 7e24e3256f
1 changed files with 2 additions and 0 deletions

View File

@ -319,6 +319,7 @@ _e_comp_wl_input_keymap_update(E_Comp_Data *cdata, struct xkb_keymap *keymap)
if (cdata->xkb.fd < 0)
{
ERR("Could not create keymap file");
free(tmp);
return;
}
@ -328,6 +329,7 @@ _e_comp_wl_input_keymap_update(E_Comp_Data *cdata, struct xkb_keymap *keymap)
if (cdata->xkb.area == MAP_FAILED)
{
ERR("Failed to mmap keymap area: %m");
free(tmp);
return;
}