Hi,
I am using pyodbc to connect to sql server. In my scenario the login fails and pyodbc reports a Programming error. But in this case it does not release the memory after reporting the error.
Code:
import pyodbc, time
def testmem():
conn = None
try:
conn = pyodbc.connect(conn_str)
except Exception as e:
pass
for i in range(100):
testmem()
If I attach a profiler, I can see memory getting increased. Any idea how the memory can be freed in this case