Disconnect the database handle cleanly on exit.
[ccbs] / html / tournaments.pl
index 169d84d..8417b3c 100755 (executable)
@@ -9,3 +9,4 @@ my $tournaments = ccbs::db_fetch_all($dbh, 'SELECT * FROM tournaments NATURAL JO
 
 ccbs::print_header();
 ccbs::process_template('tournaments.tmpl', 'Turneringer', { tournaments => $tournaments });
+$dbh->disconnect;