dtinfo: Fix coverity issues for resource leaks

This commit is contained in:
Peter Howkins
2018-04-04 22:07:10 +01:00
parent 9ef3b9ec68
commit 2b15c4057e
11 changed files with 47 additions and 13 deletions

View File

@@ -149,6 +149,7 @@ SearchPath::get_real_path( const char *file_name )
fclose( fp );
return ( full_path_name );
}
fclose( fp );
}
return NULL;

View File

@@ -533,6 +533,7 @@ void StyleTask::write_record( void )
else {
Token::signalError(Token::User, Token::Continuable, 0, 0,
"Duplicate stylesheet id `%s'", localstr);
delete bogus;
return;
}