Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: third_party/libtiff/0010-fix-leak-imagebegin.patch

Issue 2545723004: Fix a leak when TIFFRGBAImageBegin fails (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/libtiff/README.pdfium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git a/third_party/libtiff/tif_getimage.c b/third_party/libtiff/tif_getima ge.c
2 index 8523793..97fa94d 100644
3 --- a/third_party/libtiff/tif_getimage.c
4 +++ b/third_party/libtiff/tif_getimage.c
5 @@ -478,10 +478,7 @@ TIFFRGBAImageBegin(TIFFRGBAImage* img, TIFF* tif, int stop, char emsg[1024])
6 return 1;
7
8 fail_return:
9 - _TIFFfree( img->redcmap );
10 - _TIFFfree( img->greencmap );
11 - _TIFFfree( img->bluecmap );
12 - img->redcmap = img->greencmap = img->bluecmap = NULL;
13 + TIFFRGBAImageEnd(img);
14 return 0;
15 }
OLDNEW
« no previous file with comments | « no previous file | third_party/libtiff/README.pdfium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698