Verified Commit fec723ef authored by Raúl Peñacoba's avatar Raúl Peñacoba Committed by Quentin Glidic

compositor-wayland: Properly dealloc mmap data using munmap

Signed-off-by: default avatarRaúl Peñacoba <raul.mikaop.zelda@gmail.com>
Reviewed-by: Quentin Glidic's avatarQuentin Glidic <sardemff7+git@sardemff7.net>
parent 745e647f
......@@ -301,7 +301,7 @@ wayland_output_get_shm_buffer(struct wayland_output *output)
if (sb == NULL) {
weston_log("could not zalloc %zu memory for sb: %m\n", sizeof *sb);
close(fd);
free(data);
munmap(data, height * stride);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment