[OpenJDK 2D-Dev] RFR: JDK-8260432: allocateSpaceForGP in freetypeScaler.c might leak memory [v2]
Matthias Baesken
mbaesken at openjdk.java.net
Thu Jan 28 07:47:44 UTC 2021
On Wed, 27 Jan 2021 12:16:47 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> Yes, I think that is better: `realloc` can fail as well, and we don't want to leak those?
>
> Please also reset the free'd pointers to NULL in GPData* before returning.
Hello Thomas and Aleksey, I moved the free calls and added the NULL settings. Are you fine with the latest commit?
Thanks, Matthias
-------------
PR: https://git.openjdk.java.net/jdk/pull/2250
More information about the 2d-dev
mailing list