fix use-after-free

see https://oss-fuzz.com/testcase-detail/5663684670259200
This commit is contained in:
John Cupitt 2020-02-23 11:09:44 +00:00
parent 1a0e61510b
commit 175408733f
1 changed files with 1 additions and 1 deletions

View File

@ -236,9 +236,9 @@ vips_foreign_load_matrix_load( VipsForeignLoad *load )
x < load->out->Xsize;
x++, p = q )
if( vips_strtod( p, &matrix->linebuf[x] ) ) {
g_free( line );
vips_error( class->nickname,
_( "bad number \"%s\"" ), p );
g_free( line );
return( -1 );
}