two possible memleaks in werkkzeug3 #13

merged 2 commits into from Apr 25, 2012


None yet

2 participants

png85 commented Apr 24, 2012

the commits in this pull request fix two posible memory leaks in the Bitmap_Blur() functions of genbitmap.cpp and w3texlib/genbitmap.cpp
the problem with the original files was that 'qq' was initialized to heap memory but never freed before returning from the function when 'order' is 0.
to counter this i've moved the allocation of the pointer below the problematic 'if' statement which should be reasonably safe since it didn't get used before anyways.

@rygorous rygorous merged commit 66f3243 into farbrausch:master Apr 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment