Merge pull request #167 from lovell/webp-read-buffer-leak-7.40
Ensure Read struct is freed when reading WebP image data from a buffer
This commit is contained in:
commit
0eecb1ba06
@ -298,6 +298,8 @@ vips__webp_read_buffer( void *buf, size_t len, VipsImage *out )
|
||||
if( read_image( read, out ) )
|
||||
return( -1 );
|
||||
|
||||
read_free( read );
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user