[legacy] Return allocated "old_buffer" in png_push_save_buffer()

before png_error(), to avoid a memory leak.
This commit is contained in:
Glenn Randers-Pehrson
2010-02-08 07:30:16 -06:00
parent d08f1469cb
commit cac0408b59
3 changed files with 9 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ version 1.2.43beta05 [February 7, 2010]
Reverted recent changes to png_push_save-buffer().
Removed PNGAPI declaration of png_calloc() and png_write_sig() in
1ibpng-1.2.X, introduced by mistake in libpng-1.2.41.
Return allocated "old_buffer" in png_push_save_buffer() before png_error().
version 1.0.53rc01 and 1.2.43rc01 [February 8, 2010]
No changes.