apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r412252 - /apr/apr-util/trunk/dbd/apr_dbd_sqlite2.c
Date Wed, 07 Jun 2006 02:04:44 GMT
Author: bojan
Date: Tue Jun  6 19:04:43 2006
New Revision: 412252

URL: http://svn.apache.org/viewvc?rev=412252&view=rev
Log:
Properly free results table.

Modified:
    apr/apr-util/trunk/dbd/apr_dbd_sqlite2.c

Modified: apr/apr-util/trunk/dbd/apr_dbd_sqlite2.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_sqlite2.c?rev=412252&r1=412251&r2=412252&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_sqlite2.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_sqlite2.c Tue Jun  6 19:04:43 2006
@@ -97,7 +97,7 @@
         (*results)->random = seek;
 
         if (tuples > 0)
-            apr_pool_cleanup_register(pool, *result, (void *) free,
+            apr_pool_cleanup_register(pool, result, (void *) sqlite_free_table,
                                       apr_pool_cleanup_null);
 
         ret = 0;
@@ -307,7 +307,7 @@
 {
     apr_dbd_t *sql;
     sqlite *conn = NULL;
-    char *filename, *perm;
+    char *perm;
     int iperms = 600;
     char* params = apr_pstrdup(pool, params_);
     /* params = "[filename]:[permissions]"



Mime
View raw message