gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2198 - GNUnet/src/applications/sqstore_sqlite


From: durner
Subject: [GNUnet-SVN] r2198 - GNUnet/src/applications/sqstore_sqlite
Date: Sun, 16 Oct 2005 03:21:21 -0700 (PDT)

Author: durner
Date: 2005-10-16 03:21:17 -0700 (Sun, 16 Oct 2005)
New Revision: 2198

Modified:
   GNUnet/src/applications/sqstore_sqlite/sqlite.c
Log:
Fix SQLite leak mentioned in Mantis #955

Modified: GNUnet/src/applications/sqstore_sqlite/sqlite.c
===================================================================
--- GNUnet/src/applications/sqstore_sqlite/sqlite.c     2005-10-14 20:20:08 UTC 
(rev 2197)
+++ GNUnet/src/applications/sqstore_sqlite/sqlite.c     2005-10-16 10:21:17 UTC 
(rev 2198)
@@ -562,6 +562,8 @@
   if (! db)
     return;
 
+  syncStats();
+
   for (idx = 0; idx < db->handle_count; idx++) {
     sqliteHandle *h = db->handles + idx;
     
@@ -576,8 +578,6 @@
   FREE(db->handles);
   db->handle_count = 0;
 
-  syncStats();
-
   MUTEX_DESTROY(&db->DATABASE_Lock_);
   FREE(db->fn);
   FREE(db);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]