Alan Coopersmith <[email protected]> writes:

> Reported with other leaks found by cppcheck in bugzilla #50281
> https://bugs.freedesktop.org/show_bug.cgi?id=50281

> -    fbcmap.red = data;
> +    fbcmap.red = data = malloc(numColors * 3);

I'd hate to leave the obviously missing check for malloc failure here though.

-- 
[email protected]

Attachment: pgp7f9HUkVzfz.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to