Closing DB Statement
<pre><code> DBPreparedStatement stmt = null;
    try
    {
        stmt = new DBPreparedStatement(UTIL.getDatabase(), sql.toString(), "Graph.saveLastGraphName");
        stmt.setString(1, DBGlobals.doubleQuote(graphNameUsed));
        stmt.setString(2, userUpper);
        stmt.executeUpdate();
        stmt.close();
    }
    catch (Exception ex)
    {
        DBGlobals.Error("OHMjson.Graph.saveLastGraphName - Error: " + ex.getMessage());
        msg = "Unable to save data";
        status = false;
    }
    finally
    {
        if (stmt != null)
            stmt.close();
    }
</code></pre>

<p>I am closing the database statement inside the finally block, is it the right way. 
Will this cause any memory leakage.</p>
