diff Modules/_sqlite/statement.c @ 68102:e2f96bd29252

Issue #8914: fix various warnings from the Clang static analyzer v254.
author Brett Cannon <bcannon@gmail.com>
date Tue, 22 Feb 2011 20:15:44 +0000
parents e9cd15d539e1
children 6f4044afa600
line wrap: on
line diff
--- a/Modules/_sqlite/statement.c	Tue Feb 22 19:24:33 2011 +0000
+++ b/Modules/_sqlite/statement.c	Tue Feb 22 20:15:44 2011 +0000
@@ -369,11 +369,9 @@
 
 void pysqlite_statement_dealloc(pysqlite_Statement* self)
 {
-    int rc;
-
     if (self->st) {
         Py_BEGIN_ALLOW_THREADS
-        rc = sqlite3_finalize(self->st);
+        sqlite3_finalize(self->st);
         Py_END_ALLOW_THREADS
     }