Skip to content

Commit

Permalink
These need to be volatile in order to prevent leaking after the
Browse files Browse the repository at this point in the history
longjmp in the error handler
  • Loading branch information
rlerdorf committed Nov 6, 2012
1 parent 153bfad commit f452b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/gd/libgd/gd_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
png_color_16p trans_gray_rgb;
png_color_16p trans_color_rgb;
png_bytep trans;
png_bytep image_data = NULL;
png_bytepp row_pointers = NULL;
volatile png_bytep image_data = NULL;
volatile png_bytepp row_pointers = NULL;
gdImagePtr im = NULL;
int i, j, *open = NULL;
volatile int transparent = -1;
Expand Down

0 comments on commit f452b90

Please sign in to comment.