code: private void releaseConnection()
     {
        if (m_rs != null)
        {
           try
           {
              m_rs.close();
           }
  
           catch (SQLException ex)
           {
              // silently ignore errors on close
           }
  
           m_rs = null;
        }
  
        if (m_ps != null)
        {
           try
           {
              m_ps.close();
           }
  
           catch (SQLException ex)
           {
              // silently ignore errors on close
           }
  
           m_ps = null;
        }
     }
docs: Releases a database connection, and cleans up any resources
  associated with that connection.