mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-19 06:18:09 +02:00
ivi_layout_surface_add_notification: Fix potential leak of memory pointed to by 'notification'
Signed-off-by: Lucas Tanure <tanure@linux.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
96db07741f
commit
193c7a54a8
1 changed files with 1 additions and 0 deletions
|
|
@ -1532,6 +1532,7 @@ ivi_layout_surface_add_notification(struct ivi_layout_surface *ivisurf,
|
|||
prop_callback = malloc(sizeof *prop_callback);
|
||||
if (prop_callback == NULL) {
|
||||
weston_log("fails to allocate memory\n");
|
||||
free(notification);
|
||||
return IVI_FAILED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue