diff --git a/src/com/rjconsultores/integracaoreceitadespesa/BGMApplication.java b/src/com/rjconsultores/integracaoreceitadespesa/BGMApplication.java index 613a8a5bb..ee9bcd800 100644 --- a/src/com/rjconsultores/integracaoreceitadespesa/BGMApplication.java +++ b/src/com/rjconsultores/integracaoreceitadespesa/BGMApplication.java @@ -8,6 +8,7 @@ import java.io.FileOutputStream; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; +import java.sql.SQLException; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; @@ -112,6 +113,12 @@ public class BGMApplication { } catch (Exception e) { log.error("", e); return ""; + } finally{ + try { + con.close(); + } catch (SQLException e) { + e.printStackTrace(); + } } }