Commit 4ffa8cb2 authored by Srikanth Raju's avatar Srikanth Raju Committed by Leigh B Stoller

Close cursor once we're done

This is a leak!
parent c314cad6
......@@ -275,6 +275,7 @@ def DBQuery(queryPat, querySub = (), asDict = False, dbnum = 0):
rs = rs[:60] + "..."
print "Result: %s" % rs
pass
cursor.close()
if ret == None:
return ()
return ret
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment