Skip to content
Permalink
Browse files Browse the repository at this point in the history
gdImageScaleTwoPass memory leak fix
Fixing memory leak in gdImageScaleTwoPass, as reported by @cmb69 and
confirmed by @vapier.  This bug actually bit me in production and I'm
very thankful that it was reported with an easy fix.

Fixes #173.
  • Loading branch information
uranium authored and vapier committed Aug 5, 2015
1 parent 4e1ce66 commit 4751b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gd_interpolation.c
Expand Up @@ -1087,7 +1087,7 @@ gdImageScaleTwoPass(const gdImagePtr src, const unsigned int new_width,
}/* if */

if (src != tmp_im) {
gdFree(tmp_im);
gdImageDestroy(tmp_im);
}/* if */

return dst;
Expand Down

0 comments on commit 4751b60

Please sign in to comment.