Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/908
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 22, 2017
1 parent a431392 commit 650ec57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Fix error reading multi-layer XCF image file.
* Fix possible stack overflow in WEBP reader (reference
https://github.com/ImageMagick/ImageMagick/issues/907)
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).

2017-12-16 7.0.7-15 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.7-15, GIT revision 21924:30cb31746:20171216.
Expand Down
4 changes: 3 additions & 1 deletion coders/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,9 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" exit ReadOnePNGImage() with error.");

return(GetFirstImageInList(image));
if (image != (Image *) NULL)
image=DestroyImage(image);
return(image);
}

/* { For navigation to end of SETJMP-protected block. Within this
Expand Down

0 comments on commit 650ec57

Please sign in to comment.