Index: third_party/libtiff/tif_dirwrite.c |
diff --git a/third_party/tiff_v403/tif_dirwrite.c b/third_party/libtiff/tif_dirwrite.c |
similarity index 99% |
rename from third_party/tiff_v403/tif_dirwrite.c |
rename to third_party/libtiff/tif_dirwrite.c |
index fa20609e2bd49dd5ab7723538fbfcc21e0d7a582..a0fd8dc2f62215ba623a67e0f9623b5371b4ec25 100644 |
--- a/third_party/tiff_v403/tif_dirwrite.c |
+++ b/third_party/libtiff/tif_dirwrite.c |
@@ -1,4 +1,4 @@ |
-/* $Id: tif_dirwrite.c,v 1.77 2012-07-06 19:18:31 bfriesen Exp $ */ |
+/* $Id: tif_dirwrite.c,v 1.78 2015-05-31 00:38:46 bfriesen Exp $ */ |
/* |
* Copyright (c) 1988-1997 Sam Leffler |
@@ -2839,14 +2839,15 @@ _TIFFRewriteField(TIFF* tif, uint16 tag, TIFFDataType in_datatype, |
"Error writing directory link"); |
return (0); |
} |
- |
- _TIFFfree( buf_to_write ); |
} |
else |
{ |
memcpy( &entry_offset, buf_to_write, count*TIFFDataWidth(datatype)); |
} |
+ _TIFFfree( buf_to_write ); |
+ buf_to_write = 0; |
+ |
/* -------------------------------------------------------------------- */ |
/* Adjust the directory entry. */ |
/* -------------------------------------------------------------------- */ |